From a34e9376ac6008442be04910a421921c92f2ee92 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 7 May 2024 01:33:06 +0200 Subject: [PATCH] nforwardauth: add healthcheck (#56) Reviewed-on: https://git.mgrote.net/mg/homeserver/pulls/56 Co-authored-by: Michael Grote Co-committed-by: Michael Grote --- docker-compose/traefik/docker-compose.yml.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose/traefik/docker-compose.yml.j2 b/docker-compose/traefik/docker-compose.yml.j2 index c0753151..3a4d480b 100644 --- a/docker-compose/traefik/docker-compose.yml.j2 +++ b/docker-compose/traefik/docker-compose.yml.j2 @@ -47,6 +47,11 @@ services: - "./passwd:/passwd:ro" # Mount local passwd file at /passwd as read only networks: - traefik + healthcheck: + test: ["CMD", "wget", "--quiet", "--spider", "--tries=1", "http://127.0.0.1:3000/login"] + interval: 30s + timeout: 10s + retries: 3 ######## Networks ######## networks: