Zero downtime configuration

This commit is contained in:
Luke Murphy 2020-06-22 19:41:06 +02:00
parent fbf0aa00a4
commit 7f661b1074
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 7 additions and 0 deletions

View File

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