-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
31 lines (29 loc) · 717 Bytes
/
Copy pathcompose.yml
File metadata and controls
31 lines (29 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
services:
mongo:
image: mongo:latest
container_name: mongodb
ports:
- 27017:27017
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_DATABASE: test
node_app:
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
depends_on:
- mongo
restart: always
environment:
MONGODB_URI: mongodb://mongodb:27017/test
SESSION_SECRET: ${SESSION_SECRET:-SomeSecretKey}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_CALLBACK_URI: ${GOOGLE_CALLBACK_URI:-http://localhost:3000/auth/google/callback}
NODE_ENV: docker
PORT: 3000
volumes:
mongo_data: