Newer
Older
version: '3.7'
services:
web:
image: cr.unil.ch/icnml_web:ea522d1f
ports:
- 80:5000
env_file:
volumes:
- /etc/localtime:/etc/localtime:ro
healthcheck:
test: [ "CMD", "curl", "-k", "--fail", "https://localhost:5000/ping" ]
interval: 30s
timeout: 10s
retries: 1
deploy:
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