-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 866 Bytes
/
docker-compose.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
frontend:
depends_on:
- backend
build:
context: ./frontend
dockerfile: DockerFile
ports:
- 3000:3000
networks:
- frontend-backend
backend:
depends_on:
- mongodb
build:
context: ./backend
dockerfile: DockerFile
restart: unless-stopped
env_file: ./.env
environment:
- NODE_ENV=$NODE_ENV
- MONGO_DB_URL=$MONGO_DB_URL
- GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET=$GOOGLE_CLIENT_SECRET
- SECRET_KEY=$SECRET_KEY
ports:
- 8000:8000
networks:
- backend-db
- frontend-backend
mongodb:
image: mongo:4.2.0
restart: unless-stopped
volumes:
- db:/data/db
networks:
- backend-db
expose:
- 27017
volumes:
db:
networks:
backend-db:
frontend-backend: