Newer
Older
version: '3.7'
services:
web:
image: cr.unil.ch/icnml_web:d88f7767
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
ports:
- 80:5000
env_file:
- ${PROD_CONFIGURATION}
healthcheck:
test: [ "CMD", "curl", "--fail", "http://localhost:5000/ping" ]
interval: 30s
timeout: 10s
retries: 1
deploy:
replicas: 10
resources:
reservations:
memory: 256M
restart_policy:
condition: any
delay: 5s
update_config:
parallelism: 5
delay: 10s
failure_action: rollback
order: start-first
redis:
image: cr.unil.ch/icnml_redis
deploy:
replicas: 1
resources:
reservations:
memory: 1024M
restart_policy:
condition: any
delay: 5s
update_config:
parallelism: 1
delay: 10s
failure_action: rollback
order: stop-first