Newer
Older
version: '3.7'
services:
web:
image: cr.unil.ch/icnml_web:721c233f
ports:
- 80:5000
env_file:
- ${PROD_CONFIGURATION}
healthcheck:
test: [ "CMD", "curl", "-k", "--fail", "https://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