-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.staging.yml
151 lines (145 loc) · 4.66 KB
/
docker-compose.staging.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: "3.5"
services:
mongo-staging:
container_name: dx-mongo-staging
restart: always
image: mongo:latest
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
ports:
- 27018:27017
volumes:
- dx_mongo_data_staging:/data/db
env_file:
- .env
server-staging:
container_name: dx-server-staging
restart: always
build: ./dx.server
image: dx-server-staging
environment:
- MONGO_HOST=${MONGO_HOST}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- MONGO_AUTH_SOURCE=${MONGO_AUTH_SOURCE}
- BACKEND_SUBDOMAIN=${BACKEND_SUBDOMAIN}
- MAIN_DOMAIN=${MAIN_DOMAIN}
- DX_BACKEND_DIR=${DX_BACKEND_DIR}
- AUTH0_DOMAIN=${AUTH0_DOMAIN}
- AUTH0_AUDIENCE=${AUTH0_AUDIENCE}
- ENV_TYPE=${ENV_TYPE}
ports:
- 4201:4200
depends_on:
- mongo-staging
- redis-staging
env_file:
- .env
volumes:
- ./dx.backend/:/app/dx.backend/
- ./dx.server/logging/:/app/logging/
backend-staging:
container_name: dx-backend-staging
restart: always
build:
context: ./dx.backend
image: dx-backend-staging
environment:
- DATA_EXPLORER_SSR=${DATA_EXPLORER_SSR}
- DW_AUTH_TOKEN=${DW_AUTH_TOKEN}
ports:
- 4005:4004
depends_on:
- server-staging
env_file:
- .env
volumes:
- ./dx.backend/staging/:/app/staging/
- ./dx.backend/logging/:/app/logging/
- ./dx.backend/parsed-data-files/:/app/parsed-data-files/
- ./dx.backend/sample-data-files/:/app/sample-data-files/
deploy:
resources:
limits:
memory: 8G
ai-api-staging:
container_name: dx-ai-api-staging
build:
context: ./general-ai-api
image: dx-ai-api-staging
command: gunicorn --bind 0.0.0.0:5000 manage:app
volumes:
# path to be changed in deployment, this path assumes as part of DX central repo
- ./dx.backend/parsed-data-files:/parsed-data-files
env_file:
- .env
ports:
- 5001:5000
frontend-staging:
container_name: dx-frontend-staging
restart: always
build:
context: .
dockerfile: Dockerfile.staging
args:
- REACT_APP_API=${REACT_APP_API}
- REACT_APP_GOOGLE_API_CLIENT_ID=${REACT_APP_GOOGLE_API_CLIENT_ID}
- REACT_APP_GOOGLE_API_DEV_KEY=${REACT_APP_GOOGLE_API_DEV_KEY}
- REACT_APP_AUTH0_DOMAIN=${REACT_APP_AUTH0_DOMAIN}
- REACT_APP_AUTH0_CLIENT=${REACT_APP_AUTH0_CLIENT}
- REACT_APP_AUTH0_AUDIENCE=${REACT_APP_AUTH0_AUDIENCE}
- REACT_APP_HUBSPOT_PORTAL_ID=${REACT_APP_HUBSPOT_PORTAL_ID}
- REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID=${REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID}
- REACT_APP_INTERCOM_APP_ID=${REACT_APP_INTERCOM_APP_ID}
- REACT_APP_ONEDRIVE_CLIENT_ID=${REACT_APP_ONEDRIVE_CLIENT_ID}
- REACT_APP_ENV_TYPE=${REACT_APP_ENV_TYPE}
- REACT_APP_LIVE_SESSION_ID=${REACT_APP_LIVE_SESSION_ID}
image: dx-client-staging
ports:
- 81:80
depends_on:
- server-staging
- backend-staging
environment:
- REACT_APP_API=${REACT_APP_API}
- REACT_APP_CMS_TOKEN=${REACT_APP_CMS_TOKEN}
- REACT_APP_MAPBOX_TOKEN=${REACT_APP_MAPBOX_TOKEN}
- REACT_APP_CMS_API=${REACT_APP_CMS_API}
- REACT_APP_GOOGLE_API_CLIENT_ID=${REACT_APP_GOOGLE_API_CLIENT_ID}
- REACT_APP_GOOGLE_API_DEV_KEY=${REACT_APP_GOOGLE_API_DEV_KEY}
- REACT_APP_AUTH0_DOMAIN=${REACT_APP_AUTH0_DOMAIN}
- REACT_APP_AUTH0_CLIENT=${REACT_APP_AUTH0_CLIENT}
- REACT_APP_AUTH0_AUDIENCE=${REACT_APP_AUTH0_AUDIENCE}
- REACT_APP_HUBSPOT_PORTAL_ID=${REACT_APP_HUBSPOT_PORTAL_ID}
- REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID=${REACT_APP_HUBSPOT_SUBSCRIBE_FORM_ID}
- REACT_APP_INTERCOM_APP_ID=${REACT_APP_INTERCOM_APP_ID}
- REACT_APP_ONEDRIVE_CLIENT_ID=${REACT_APP_ONEDRIVE_CLIENT_ID}
- REACT_APP_ENV_TYPE=${REACT_APP_ENV_TYPE}
- REACT_APP_LIVE_SESSION_ID=${REACT_APP_LIVE_SESSION_ID}
env_file:
- .env
deploy:
resources:
limits:
memory: 8G
volumes:
- ./dx.client/staging/:/app/client/staging/
redis-staging:
container_name: dx-redis-staging
image: redis:latest
restart: always
ports:
- 6380:6379
command:
- /bin/sh
- -c
- redis-server --save 20 1 --loglevel debug --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
volumes:
- dx_redis_data_staging:/data
env_file:
- .env
volumes:
dx_mongo_data_staging:
dx_redis_data_staging: