-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (42 loc) · 874 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
version: '3.2'
services:
mongo:
image: mongo
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
volumes:
- mongo-data:/data/db
- mongo-config:/data/configdb
backend:
build:
context: ./backend
depends_on:
mongo:
condition: service_healthy
ports:
- "8008:8008"
- "8009:8009"
environment:
- MONGODB_LOCATION=mongo:27017
- PORT_BASE=8008
- DATA_DIRECTORY=/plo
volumes:
- media-data:/plo
frontend:
build:
context: ./frontend
args:
- REACT_APP_BACKEND_LOCATION=127.0.0.1
- REACT_APP_BACKEND_PORT_BASE=8008
depends_on:
- backend
ports:
- "8000:8000"
volumes:
mongo-data:
mongo-config:
media-data: