-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-nologs.yml
484 lines (451 loc) · 10.6 KB
/
docker-compose-nologs.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
networks:
aegis guard: {}
atlas:
internal: true
sentinel:
internal: true
alfred_network:
internal: true
mnemosine_network:
internal: true
petrus_network:
internal: true
volumes:
shared_code:
driver: local
driver_opts:
type: none
device: ./requirements/shared_code
o: bind
alfred_data:
driver: local
mnemosine_data:
driver: local
petrus_data:
driver: local
vault_data: {}
token_alfred_data: {}
token_alfred_db_data: {}
token_shared_data: {}
token_mnemosine_data: {}
token_mnemosine_db_data: {}
token_petrus_data: {}
token_petrus_db_data: {}
token_root_data: {}
token_env_data: {}
services:
# # Reverse proxy container
aegis:
depends_on:
alfred:
condition: service_healthy
coubertin:
condition: service_healthy
cupidon:
condition: service_healthy
hermes:
condition: service_healthy
ludo:
condition: service_healthy
malevitch:
condition: service_started
mnemosine:
condition: service_healthy
petrus:
condition: service_healthy
tutum:
condition: service_started
container_name: aegis
build:
context: ./requirements/aegis
dockerfile: Dockerfile
args:
PROXY_CONF: $PROXY_CONF
env_file: .env
ports:
# - "80:80"
# - "443:443"
- "7999:80"
- "8000:443"
volumes:
- ./requirements/aegis:/usr/share/nginx/html
- /etc/letsencrypt/archive/batch42.me:/etc/letsencrypt/live/batch42.me:r
networks:
- aegis guard
- atlas
- sentinel
restart: on-failure
healthcheck:
test:
[
"CMD-SHELL",
"curl http://localhost:8000 | echo -e 'cannot curl'",
]
interval: 10s
timeout: 10s
retries: 120
# # Profil container
alfred:
depends_on:
alfred_db:
condition: service_healthy
tutum:
condition: service_healthy
container_name: alfred
image: alfred
build:
context: ./requirements/alfred
dockerfile: Dockerfile
environment:
ALFRED_USER: alfred
ALFRED_PASSWORD: alfred_pass
ALFRED_DB: user_management
NOLOGS: true
volumes:
- ./requirements/alfred/alfred_project:/app
- token_alfred_data:/app/tokens
- shared_code:/app/shared
ports:
- "8001:8001"
networks:
- atlas
- alfred_network
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8001/healthcheck/"
]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
restart: on-failure
# # Profil database container
alfred_db:
depends_on:
tutum:
condition: service_healthy
image: alfred_db
container_name: alfred_db
build:
context: ./requirements/alfred_db/
dockerfile: Dockerfile
environment:
POSTGRES_DB: alfred_db
POSTGRES_USER: alfred_user
POSTGRES_PASSWORD: alfred_password
ALFRED_USER: alfred
ALFRED_PASSWORD: alfred_pass
ALFRED_DB: user_management
volumes:
- token_alfred_db_data:/tokens
- alfred_data:/var/lib/postgresql/data
networks:
- alfred_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -d user_management -U alfred"]
interval: 5s
timeout: 5s
retries: 5
# # Tournament container
coubertin:
container_name: coubertin
environment:
NOLOGS: true
image: coubertin
build:
context: ./requirements/coubertin
dockerfile: Dockerfile
volumes:
- ./requirements/coubertin/coubertin_project:/app
- token_shared_data:/app/tokens
- shared_code:/app/shared
ports:
- "8002:8002"
networks:
- atlas
depends_on:
tutum:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8002/healthcheck/"
]
restart: on-failure
# # Matchmaking container
cupidon:
container_name: cupidon
environment:
NOLOGS: true
image: cupidon
build:
context: ./requirements/cupidon
dockerfile: Dockerfile
volumes:
- ./requirements/cupidon/cupidon_project:/app
- token_shared_data:/app/tokens
- shared_code:/app/shared
ports:
- "8003:8003"
networks:
- atlas
depends_on:
tutum:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8003/healthcheck/"
]
restart: on-failure
# # Notification container
hermes:
container_name: hermes
environment:
NOLOGS: true
image: hermes
build:
context: ./requirements/hermes
dockerfile: Dockerfile
volumes:
- ./requirements/hermes/hermes_project:/app
- token_shared_data:/app/tokens
- shared_code:/app/shared
ports:
- "8004:8004"
networks:
- atlas
depends_on:
tutum:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8004/healthcheck/"
]
restart: on-failure
# # Game container
ludo:
container_name: ludo
environment:
NOLOGS: true
image: ludo
build:
context: ./requirements/ludo
dockerfile: Dockerfile
volumes:
- ./requirements/ludo/ludo_project:/app
- shared_code:/app/shared
- token_shared_data:/app/tokens
ports:
- "8006:8006"
networks:
- atlas
depends_on:
tutum:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8006/healthcheck/"
]
restart: on-failure
# # Front container
malevitch:
container_name: malevitch
image: malevitch
build:
context: ./requirements/malevitch
dockerfile: Dockerfile
volumes:
- ./requirements/malevitch:/usr/share/nginx/html
ports:
- "8007:80"
networks:
- atlas
restart: on-failure
# # Stats container
mnemosine:
depends_on:
mnemosine_db:
condition: service_healthy
tutum:
condition: service_healthy
container_name: mnemosine
image: mnemosine
build:
context: ./requirements/mnemosine
dockerfile: Dockerfile
volumes:
- ./requirements/mnemosine/mnemosine_project:/app
- token_mnemosine_data:/app/tokens
- shared_code:/app/shared
environment:
NOLOGS: true
MNEMOSINE_USER: mnemosine
MNEMOSINE_PASSWORD: 'mnemosine_pass'
MNEMOSINE_DB: memory_management
ports:
- "8008:8008"
networks:
- atlas
- mnemosine_network
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8008/healthcheck/"
]
restart: on-failure
# # Stats database container
mnemosine_db:
depends_on:
tutum:
condition: service_healthy
image: mnemosine_db
container_name: mnemosine_db
build:
context: ./requirements/mnemosine_db/
dockerfile: Dockerfile
environment:
POSTGRES_DB: mnemosine_db
POSTGRES_USER: mnemosine_user
POSTGRES_PASSWORD: mnemosine_password
MNEMOSINE_USER: mnemosine
MNEMOSINE_PASSWORD: 'mnemosine_pass'
MNEMOSINE_DB: memory_management
volumes:
- token_mnemosine_db_data:/tokens
- mnemosine_data:/var/lib/postgresql/data
networks:
- mnemosine_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -d memory_management -U mnemosine"]
interval: 5s
timeout: 5s
retries: 5
# # Authentification container
petrus:
depends_on:
petrus_db:
condition: service_healthy
tutum:
condition: service_healthy
container_name: petrus
image: petrus
build:
context: ./requirements/petrus
dockerfile: Dockerfile
environment:
NOLOGS: true
PETRUS_USER: petrus
PETRUS_PASSWORD: 'petrus_pass'
PETRUS_DB: auth_management
volumes:
- ./requirements/petrus/petrus_project:/app
- shared_code:/app/shared
- token_petrus_data:/app/tokens
ports:
- "8009:8009"
networks:
- atlas
- petrus_network
healthcheck:
test:
[
"CMD-SHELL",
"python3",
"/app/shared/curl.py",
"http://localhost:8009/healthcheck/"
]
restart: on-failure
# # Authentification database container
petrus_db:
depends_on:
tutum:
condition: service_healthy
image: petrus_db
container_name: petrus_db
build:
context: ./requirements/petrus_db/
dockerfile: Dockerfile
environment:
POSTGRES_DB: petrus_db
POSTGRES_USER: petrus_user
POSTGRES_PASSWORD: petrus_password
PETRUS_USER: petrus
PETRUS_PASSWORD: 'petrus_pass'
PETRUS_DB: auth_management
volumes:
- token_petrus_db_data:/tokens
- petrus_data:/var/lib/postgresql/data
networks:
- petrus_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -d auth_management -U petrus"]
interval: 5s
timeout: 5s
retries: 5
# # Vault container
tutum:
container_name: tutum
image: tutum
build:
context: ./requirements/tutum
dockerfile: Dockerfile
args:
ELASTIC_PASSWORD: $ELASTIC_PASSWORD
KIBANA_PASSWORD: $KIBANA_PASSWORD
env_file: .env
volumes:
- vault_data:/opt/vault
- token_alfred_data:/tokens/alfred
- token_alfred_db_data:/tokens/alfred-db
- token_shared_data:/tokens/shared-django
- token_mnemosine_data:/tokens/mnemosine
- token_mnemosine_db_data:/tokens/mnemosine-db
- token_petrus_data:/tokens/petrus
- token_petrus_db_data:/tokens/petrus-db
- token_root_data:/tokens/root
- token_env_data:/tokens/env
ports:
- "8200:8200"
networks:
- atlas
- sentinel
- alfred_network
- mnemosine_network
- petrus_network
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-sSf", "http://localhost:8200/v1/sys/health"]
interval: 1s
timeout: 5s
retries: 120
# # Websocket container
redis:
container_name: redis
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- atlas
restart: on-failure