Add health check and configure update order
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-06-22 17:33:29 +02:00
parent 305ec20d27
commit 92dbaf254f
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 7 additions and 0 deletions

View File

@ -21,9 +21,16 @@ services:
- PROXY_ADDRESS_FORWARDING=true
depends_on:
- mariadb
healthcheck:
test: ["CMD", "curl", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.routers.keycloak.rule=Host(`id.autonomic.zone`)"