-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (44 loc) · 931 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
48
49
50
version: '3.8'
services:
mongodb:
image: mongo:7.0.0
restart: unless-stopped
ports:
- $MONGODB_LOCAL_PORT:$MONGODB_DOCKER_PORT
volumes:
- db:/data/db
networks:
- backend
exco-backend:
depends_on:
- mongodb
build: ./exco-backend
restart: unless-stopped
env_file: ./.env
ports:
- $NODE_LOCAL_PORT:$NODE_DOCKER_PORT
environment:
- DB_URL=mongodb://mongodb:${MONGODB_DOCKER_PORT}/
- DB_NAME=$DB_NAME
- JWT_SECRET=$JWT_SECRET
- PORT=$NODE_DOCKER_PORT
- COMBINED=FALSE
networks:
- backend
- frontend
exco-frontend:
depends_on:
- exco-backend
build:
context: ./exco-frontend
args:
- REACT_APP_BASE_API_URL=$REACT_APP_BASE_API_URL
ports:
- $REACT_LOCAL_PORT:$REACT_DOCKER_PORT
networks:
- frontend
volumes:
db:
networks:
backend:
frontend: