From 5a5e88378d66b03e72f2637d3d6ec97ccb14d3b5 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 7 May 2024 01:21:56 +0200 Subject: [PATCH] nforwardauth: add healthcheck --- 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..f620cc1f 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", "--tries=1", "--spider", "http://127.0.0.1:3000"] + interval: 30s + timeout: 10s + retries: 3 ######## Networks ######## networks: