forked from e-mission/op-admin-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod-nginx.yml
53 lines (51 loc) · 1.21 KB
/
docker-compose-prod-nginx.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
51
52
53
# docker-compose-prod-ngnix.yml
# used for testing with the ngnix reverse proxy
version: "3"
services:
dashboard:
build:
context: .
dockerfile: docker/Dockerfile
image: e-mission/opdash:0.0.1
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
DASH_REQUESTS_PATHNAME_PREFIX: "/admin/"
REACT_VERSION: "18.2.0"
networks:
- emission
deploy:
restart_policy:
condition: on-failure
depends_on:
- db
- nginxrp
db:
image: mongo:4.4.0
deploy:
replicas: 1
restart_policy:
condition: on-failure
networks:
- emission
nginxrp:
image: nginx:1.24.0
deploy:
replicas: 1
restart_policy:
condition: on-failure
networks:
- emission
volumes:
- ./docker/ngnix.conf:/etc/nginx/nginx.conf:ro
ports:
- "8060:80"
networks:
emission: