Implement health check
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-06-25 11:51:44 +02:00
parent 9cb65636b2
commit 84fed5f21d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,12 @@ services:
target: /etc/traefik/file-provider.yml
networks:
- proxy
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:80/ping"]
interval: 10s
timeout: 10s
retries: 10
start_period: 10s
deploy:
update_config:
failure_action: rollback
@ -38,7 +44,7 @@ networks:
configs:
traefik_yml:
name: traefik_traefik_yml_v1
name: traefik_traefik_yml_v2
file: traefik.yml
file_provider:
name: traefik_file_provider_v1

View File

@ -27,6 +27,9 @@ entrypoints:
gitea-ssh:
address: ":2222"
ping:
entryPoint: web
certificatesResolvers:
staging:
acme: