-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.dev.yml
128 lines (122 loc) · 3.57 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
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
version: "3.5"
services:
mongo-dev:
container_name: dx-mongo-dev
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:
- 27017:27017
volumes:
- dx_mongo_data_dev:/data/db
env_file:
- .env
server-dev:
container_name: dx-server-dev
restart: always
build:
context: ./dx.server
dockerfile: Dockerfile.dev
image: dx-server-dev
environment:
- MONGO_HOST=${MONGO_HOST}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- MONGO_AUTH_SOURCE=${MONGO_AUTH_SOURCE}
- DX_BACKEND_DIR=${DX_BACKEND_DIR}
- AUTH0_DOMAIN=${AUTH0_DOMAIN}
- AUTH0_AUDIENCE=${AUTH0_AUDIENCE}
- ENV_TYPE=${ENV_TYPE}
ports:
- 4200:4200
env_file:
- .env
volumes:
- ./dx.backend/:/app/dx.backend/
- ./dx.server/src/:/app/src/
- ./dx.server/logging/:/app/logging/
depends_on:
- redis-dev
backend-dev:
container_name: dx-backend-dev
restart: always
build:
context: ./dx.backend
image: dx-backend-dev
environment:
- DATA_EXPLORER_SSR=${DATA_EXPLORER_SSR}
- DW_AUTH_TOKEN=${DW_AUTH_TOKEN}
ports:
- 4004:4004
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/
- ./dx.backend/services/:/app/services/
- ./dx.backend/util/:/app/util/
- ./dx.backend/app.py:/app/app.py
ai-api-dev:
container_name: dx-ai-api-dev
build:
context: ./general-ai-api
image: dx-ai-api-dev
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
- ./general-ai-api:/app
ports:
- 5000:5000
env_file:
- .env
frontend-dev:
container_name: dx-dev
restart: always
build:
context: .
dockerfile: Dockerfile.dev
image: dx-dev
ports:
- 3000:3000
volumes:
- ./dx.client/src:/app/client/src
environment:
- CHOKIDAR_USEPOLLING=true
- 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_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
redis-dev:
container_name: dx-redis-dev
image: redis:latest
restart: always
ports:
- 6379: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_dev:/data
env_file:
- .env
volumes:
dx_mongo_data_dev:
dx_redis_data_dev: