forked from e-mission/op-admin-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
50 lines (48 loc) · 1.11 KB
/
docker-compose-prod.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
# docker-compose-prod.yml
version: "3"
services:
dashboard:
build:
context: .
dockerfile: docker/Dockerfile
image: e-mission/opdash:0.0.1
ports:
- "8050:8050"
environment:
DASH_DEBUG_MODE: "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
COGNITO_CLIENT_ID: ''
COGNITO_CLIENT_SECRET: ''
COGNITO_REDIRECT_URL: ''
COGNITO_TOKEN_ENDPOINT: ''
COGNITO_USER_POOL_ID: ''
COGNITO_REGION: ''
COGNITO_AUTH_URL: ''
REACT_VERSION: "18.2.0"
networks:
- emission
deploy:
restart_policy:
condition: on-failure
depends_on:
- db
db:
image: mongo:4.4.0
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
- mongo-data:/data/db
networks:
- emission
networks:
emission:
volumes:
mongo-data: