Add healthcheck

This commit is contained in:
3wc 2020-09-08 12:01:26 +02:00
parent 6144c3531f
commit 26ca41aa91
1 changed files with 7 additions and 0 deletions

View File

@ -49,9 +49,16 @@ services:
networks:
- proxy
- internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"