Add health check and configure update order
All checks were successful
continuous-integration/drone/push Build is passing

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

View File

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