Zero downtime configuration

This commit is contained in:
Luke Murphy 2020-06-22 19:41:06 +02:00
parent 39972bb9eb
commit 8ada7f238c

View File

@ -25,9 +25,16 @@ services:
networks: networks:
- proxy - proxy
- internal - internal
healthcheck:
test: ["CMD", "curl", "-f" "http://localhost:3000"]
interval: 15s
timeout: 10s
retries: 10
start_period: 30s
deploy: deploy:
update_config: update_config:
failure_action: rollback failure_action: rollback
order: start-first
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"