From 26ca41aa91ba0ac637250f6523a8a6f50917b310 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Tue, 8 Sep 2020 12:01:26 +0200 Subject: [PATCH] Add healthcheck --- compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compose.yml b/compose.yml index 99c5e97..9c63ea1 100644 --- a/compose.yml +++ b/compose.yml @@ -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"