forked from e-mission/op-admin-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
49 lines (47 loc) · 1.14 KB
/
docker-compose-dev.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
# docker-compose.yml
version: "3"
services:
dashboard:
build:
context: .
dockerfile: docker/Dockerfile
image: e-mission/opdash:0.0.1
ports:
- "8050:8050"
environment:
DASH_DEBUG_MODE: "True"
DASH_SILENCE_ROUTES_LOGGING: "False"
DASH_SERVER_PORT: 8050
DB_HOST: db
WEB_SERVER_HOST: 0.0.0.0
SERVER_BRANCH: master
CONFIG_PATH: "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/configs/"
STUDY_CONFIG: "stage-program"
AUTH_TYPE: "basic" # the other option is cognito
REACT_VERSION: "18.2.0"
networks:
- emission
volumes:
- ./pages:/usr/src/app/pages
- ./utils:/usr/src/app/utils
- ./app.py:/usr/src/app/app.py
- ./app_sidebar_collapsible.py:/usr/src/app/app_sidebar_collapsible.py
deploy:
restart_policy:
condition: on-failure
db:
image: mongo:4.4.0
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
- mongo-data:/data/db
networks:
- emission
ports:
- "27017:27017"
networks:
emission:
volumes:
mongo-data: