This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
/
docker-compose.yml
258 lines (250 loc) · 10.8 KB
/
docker-compose.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
version: "3.7"
#https://github.com/compose-spec/compose-spec/blob/master/spec.md#using-extensions-as-fragments
x-logging: &default-logging
options:
max-size: "100m"
max-file: "5"
driver: json-file
x-version:
&chaosgenius-version
CHAOSGENIUS_VERSION_POSTFIX=stable-compose
services:
chaosgenius-server:
container_name: chaosgenius-server
image: chaosgenius/chaosgenius-server:0.11.0
command: sh setup/run-backend-docker.sh
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- chaosgenius-db
environment:
- *chaosgenius-version
- IN_DOCKER=True
- AIRBYTE_ENABLED=${AIRBYTE_ENABLED}
- FLASK_APP=${FLASK_APP}
- FLASK_ENV=${FLASK_ENV}
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_RUN_PORT=${FLASK_RUN_PORT}
- SECRET_KEY=${SECRET_KEY}
- SEND_FILE_MAX_AGE_DEFAULT=${SEND_FILE_MAX_AGE_DEFAULT}
- DB_HOST=${DB_HOST}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- META_DATABASE=${META_DATABASE}
- DATA_DATABASE=${DATA_DATABASE}
- DATABASE_URL_CG_DB=${DATABASE_URL_CG_DB}
- INTEGRATION_SERVER=${INTEGRATION_SERVER}
- INTEGRATION_DB_HOST=${INTEGRATION_DB_HOST}
- INTEGRATION_DB_USERNAME=${INTEGRATION_DB_USERNAME}
- INTEGRATION_DB_PASSWORD=${INTEGRATION_DB_PASSWORD}
- INTEGRATION_DB_PORT=${INTEGRATION_DB_PORT}
- INTEGRATION_DATABASE=${INTEGRATION_DATABASE}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CACHE_DEFAULT_TIMEOUT=${CACHE_DEFAULT_TIMEOUT}
- MULTIDIM_ANALYSIS_FOR_ANOMALY=${MULTIDIM_ANALYSIS_FOR_ANOMALY}
- MAX_SUBDIM_CARDINALITY=${MAX_SUBDIM_CARDINALITY}
- TOP_DIMENSIONS_FOR_ANOMALY_DRILLDOWN=${TOP_DIMENSIONS_FOR_ANOMALY_DRILLDOWN}
- MIN_DATA_IN_SUBGROUP=${MIN_DATA_IN_SUBGROUP}
- TOP_SUBDIMENSIONS_FOR_ANOMALY=${TOP_SUBDIMENSIONS_FOR_ANOMALY}
- MAX_ROWS_IN_KPI=${MAX_ROWS_IN_KPI}
- MAX_FILTER_SUBGROUPS_ANOMALY=${MAX_FILTER_SUBGROUPS_ANOMALY}
- MAX_SUMMARY_DEEPDRILLS_SLACK_DAYS=${MAX_SUMMARY_DEEPDRILLS_SLACK_DAYS}
- MAX_ANOMALY_SLACK_DAYS=${MAX_ANOMALY_SLACK_DAYS}
- DAYS_OFFSET_FOR_ANALTYICS=${DAYS_OFFSET_FOR_ANALTYICS}
- HOURS_OFFSET_FOR_ANALTYICS=${HOURS_OFFSET_FOR_ANALTYICS}
- DEEPDRILLS_HTABLE_MAX_PARENTS=${DEEPDRILLS_HTABLE_MAX_PARENTS}
- DEEPDRILLS_HTABLE_MAX_CHILDREN=${DEEPDRILLS_HTABLE_MAX_CHILDREN}
- DEEPDRILLS_HTABLE_MAX_DEPTH=${DEEPDRILLS_HTABLE_MAX_DEPTH}
- SUMMARY_DEEPDRILLS_ENABLED_TIME_RANGES=${SUMMARY_DEEPDRILLS_ENABLED_TIME_RANGES}
- DEEPDRILLS_ENABLED=${DEEPDRILLS_ENABLED}
- TIMEZONE=${TIMEZONE}
- REACT_APP_EVENT_ALERT=${REACT_APP_EVENT_ALERT}
- SENTRY_DSN=${SENTRY_DSN}
- CHAOSGENIUS_ENTERPRISE_EDITION_KEY=${CHAOSGENIUS_ENTERPRISE_EDITION_KEY}
- CHAOSGENIUS_WEBAPP_URL=${CHAOSGENIUS_WEBAPP_URL}
- CORS_ENABLED=${CORS_ENABLED}
chaosgenius-webapp:
container_name: chaosgenius-webapp
image: chaosgenius/chaosgenius-webapp:0.11.0
command: >
sh -c "npx react-inject-env set -d ./ &&
nginx -g 'daemon off;'"
restart: unless-stopped
volumes:
- ./frontend/nginx:/etc/nginx/conf.d/
ports:
- "8080:8080"
environment:
- REACT_APP_BASE_URL=${REACT_APP_BASE_URL}
- REACT_APP_DISABLE_TELEMETRY=${REACT_APP_DISABLE_TELEMETRY}
- REACT_APP_EVENT_ALERT=${REACT_APP_EVENT_ALERT}
depends_on:
- chaosgenius-server
chaosgenius-db:
container_name: chaosgenius-db
image: postgres:13
restart: unless-stopped
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "chaosgenius_data", "-U", "postgres" ]
timeout: 45s
interval: 10s
retries: 10
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./docker/cg-db-setup:/docker-entrypoint-initdb.d/
- cg-db:/var/lib/postgresql/data
chaosgenius-redis:
container_name: chaosgenius-redis
image: "redis:6.2-alpine"
restart: unless-stopped
chaosgenius-scheduler:
container_name: chaosgenius-scheduler
image: chaosgenius/chaosgenius-server:0.11.0
command: celery -A run.celery beat --loglevel=DEBUG
restart: unless-stopped
environment:
- IN_DOCKER=True
- AIRBYTE_ENABLED=${AIRBYTE_ENABLED}
- FLASK_APP=${FLASK_APP}
- FLASK_ENV=${FLASK_ENV}
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_RUN_PORT=${FLASK_RUN_PORT}
- SECRET_KEY=${SECRET_KEY}
- SEND_FILE_MAX_AGE_DEFAULT=${SEND_FILE_MAX_AGE_DEFAULT}
- DB_HOST=${DB_HOST}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- META_DATABASE=${META_DATABASE}
- DATA_DATABASE=${DATA_DATABASE}
- DATABASE_URL_CG_DB=${DATABASE_URL_CG_DB}
- INTEGRATION_SERVER=${INTEGRATION_SERVER}
- INTEGRATION_DB_HOST=${INTEGRATION_DB_HOST}
- INTEGRATION_DB_USERNAME=${INTEGRATION_DB_USERNAME}
- INTEGRATION_DB_PASSWORD=${INTEGRATION_DB_PASSWORD}
- INTEGRATION_DB_PORT=${INTEGRATION_DB_PORT}
- INTEGRATION_DATABASE=${INTEGRATION_DATABASE}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- REACT_APP_EVENT_ALERT=${REACT_APP_EVENT_ALERT}
- SENTRY_DSN=${SENTRY_DSN}
- CHAOSGENIUS_ENTERPRISE_EDITION_KEY=${CHAOSGENIUS_ENTERPRISE_EDITION_KEY}
- CHAOSGENIUS_WEBAPP_URL=${CHAOSGENIUS_WEBAPP_URL}
- METADATA_SYNC_TIME=${METADATA_SYNC_TIME}
depends_on:
- chaosgenius-redis
chaosgenius-worker-analytics:
container_name: chaosgenius-worker-analytics
image: chaosgenius/chaosgenius-server:0.11.0
command: celery -A run.celery worker --loglevel=INFO --concurrency=2 -P processes -Q anomaly-rca
restart: unless-stopped
environment:
- IN_DOCKER=True
- AIRBYTE_ENABLED=${AIRBYTE_ENABLED}
- FLASK_APP=${FLASK_APP}
- FLASK_ENV=${FLASK_ENV}
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_RUN_PORT=${FLASK_RUN_PORT}
- SECRET_KEY=${SECRET_KEY}
- SEND_FILE_MAX_AGE_DEFAULT=${SEND_FILE_MAX_AGE_DEFAULT}
- DB_HOST=${DB_HOST}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- META_DATABASE=${META_DATABASE}
- DATA_DATABASE=${DATA_DATABASE}
- DATABASE_URL_CG_DB=${DATABASE_URL_CG_DB}
- INTEGRATION_SERVER=${INTEGRATION_SERVER}
- INTEGRATION_DB_HOST=${INTEGRATION_DB_HOST}
- INTEGRATION_DB_USERNAME=${INTEGRATION_DB_USERNAME}
- INTEGRATION_DB_PASSWORD=${INTEGRATION_DB_PASSWORD}
- INTEGRATION_DB_PORT=${INTEGRATION_DB_PORT}
- INTEGRATION_DATABASE=${INTEGRATION_DATABASE}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- MULTIDIM_ANALYSIS_FOR_ANOMALY=${MULTIDIM_ANALYSIS_FOR_ANOMALY}
- MAX_SUBDIM_CARDINALITY=${MAX_SUBDIM_CARDINALITY}
- TOP_DIMENSIONS_FOR_ANOMALY_DRILLDOWN=${TOP_DIMENSIONS_FOR_ANOMALY_DRILLDOWN}
- MIN_DATA_IN_SUBGROUP=${MIN_DATA_IN_SUBGROUP}
- TOP_SUBDIMENSIONS_FOR_ANOMALY=${TOP_SUBDIMENSIONS_FOR_ANOMALY}
- MAX_ROWS_IN_KPI=${MAX_ROWS_IN_KPI}
- MAX_FILTER_SUBGROUPS_ANOMALY=${MAX_FILTER_SUBGROUPS_ANOMALY}
- MAX_SUMMARY_DEEPDRILLS_SLACK_DAYS=${MAX_SUMMARY_DEEPDRILLS_SLACK_DAYS}
- MAX_ANOMALY_SLACK_DAYS=${MAX_ANOMALY_SLACK_DAYS}
- DAYS_OFFSET_FOR_ANALTYICS=${DAYS_OFFSET_FOR_ANALTYICS}
- HOURS_OFFSET_FOR_ANALTYICS=${HOURS_OFFSET_FOR_ANALTYICS}
- DEEPDRILLS_HTABLE_MAX_PARENTS=${DEEPDRILLS_HTABLE_MAX_PARENTS}
- DEEPDRILLS_HTABLE_MAX_CHILDREN=${DEEPDRILLS_HTABLE_MAX_CHILDREN}
- DEEPDRILLS_HTABLE_MAX_DEPTH=${DEEPDRILLS_HTABLE_MAX_DEPTH}
- SUMMARY_DEEPDRILLS_ENABLED_TIME_RANGES=${SUMMARY_DEEPDRILLS_ENABLED_TIME_RANGES}
- DEEPDRILLS_ENABLED=${DEEPDRILLS_ENABLED}
- TIMEZONE=${TIMEZONE}
- REACT_APP_EVENT_ALERT=${REACT_APP_EVENT_ALERT}
- SENTRY_DSN=${SENTRY_DSN}
- CHAOSGENIUS_ENTERPRISE_EDITION_KEY=${CHAOSGENIUS_ENTERPRISE_EDITION_KEY}
- CHAOSGENIUS_WEBAPP_URL=${CHAOSGENIUS_WEBAPP_URL}
depends_on:
- chaosgenius-redis
- chaosgenius-db
chaosgenius-worker-alerts:
container_name: chaosgenius-worker-alerts
image: chaosgenius/chaosgenius-server:0.11.0
command: celery -A run.celery worker --loglevel=INFO --concurrency=2 -P processes -Q alerts
restart: unless-stopped
environment:
- IN_DOCKER=True
- AIRBYTE_ENABLED=${AIRBYTE_ENABLED}
- FLASK_APP=${FLASK_APP}
- FLASK_ENV=${FLASK_ENV}
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_RUN_PORT=${FLASK_RUN_PORT}
- SECRET_KEY=${SECRET_KEY}
- SEND_FILE_MAX_AGE_DEFAULT=${SEND_FILE_MAX_AGE_DEFAULT}
- DB_HOST=${DB_HOST}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- META_DATABASE=${META_DATABASE}
- DATA_DATABASE=${DATA_DATABASE}
- DATABASE_URL_CG_DB=${DATABASE_URL_CG_DB}
- INTEGRATION_SERVER=${INTEGRATION_SERVER}
- INTEGRATION_DB_HOST=${INTEGRATION_DB_HOST}
- INTEGRATION_DB_USERNAME=${INTEGRATION_DB_USERNAME}
- INTEGRATION_DB_PASSWORD=${INTEGRATION_DB_PASSWORD}
- INTEGRATION_DB_PORT=${INTEGRATION_DB_PORT}
- INTEGRATION_DATABASE=${INTEGRATION_DATABASE}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CACHE_DEFAULT_TIMEOUT=${CACHE_DEFAULT_TIMEOUT}
- MULTIDIM_ANALYSIS_FOR_ANOMALY=${MULTIDIM_ANALYSIS_FOR_ANOMALY}
- MAX_SUBDIM_CARDINALITY=${MAX_SUBDIM_CARDINALITY}
- TOP_DIMENSIONS_FOR_ANOMALY_DRILLDOWN=${TOP_DIMENSIONS_FOR_ANOMALY_DRILLDOWN}
- MIN_DATA_IN_SUBGROUP=${MIN_DATA_IN_SUBGROUP}
- TOP_SUBDIMENSIONS_FOR_ANOMALY=${TOP_SUBDIMENSIONS_FOR_ANOMALY}
- MAX_ROWS_IN_KPI=${MAX_ROWS_IN_KPI}
- MAX_FILTER_SUBGROUPS_ANOMALY=${MAX_FILTER_SUBGROUPS_ANOMALY}
- MAX_SUMMARY_DEEPDRILLS_SLACK_DAYS=${MAX_SUMMARY_DEEPDRILLS_SLACK_DAYS}
- MAX_ANOMALY_SLACK_DAYS=${MAX_ANOMALY_SLACK_DAYS}
- DAYS_OFFSET_FOR_ANALTYICS=${DAYS_OFFSET_FOR_ANALTYICS}
- HOURS_OFFSET_FOR_ANALTYICS=${HOURS_OFFSET_FOR_ANALTYICS}
- DEEPDRILLS_HTABLE_MAX_PARENTS=${DEEPDRILLS_HTABLE_MAX_PARENTS}
- DEEPDRILLS_HTABLE_MAX_CHILDREN=${DEEPDRILLS_HTABLE_MAX_CHILDREN}
- DEEPDRILLS_HTABLE_MAX_DEPTH=${DEEPDRILLS_HTABLE_MAX_DEPTH}
- SUMMARY_DEEPDRILLS_ENABLED_TIME_RANGES=${SUMMARY_DEEPDRILLS_ENABLED_TIME_RANGES}
- DEEPDRILLS_ENABLED=${DEEPDRILLS_ENABLED}
- REACT_APP_EVENT_ALERT=${REACT_APP_EVENT_ALERT}
- SENTRY_DSN=${SENTRY_DSN}
- CHAOSGENIUS_ENTERPRISE_EDITION_KEY=${CHAOSGENIUS_ENTERPRISE_EDITION_KEY}
- CHAOSGENIUS_WEBAPP_URL=${CHAOSGENIUS_WEBAPP_URL}
- TIMEZONE=${TIMEZONE}
depends_on:
- chaosgenius-redis
- chaosgenius-db
volumes:
cg-db:
name: ${CG_DB_DOCKER_MOUNT}