From d94f2fd331c6332b4c6b0b7d4d9e31f4b95018fc Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 16 Feb 2024 03:14:54 +0000 Subject: [PATCH] Update stack.staging.yml --- stack.staging.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stack.staging.yml b/stack.staging.yml index 7d6ae2b..7bda1ec 100644 --- a/stack.staging.yml +++ b/stack.staging.yml @@ -27,6 +27,12 @@ services: - NTFY_DATA_DIR=/data command: - serve + healthcheck: # optional: remember to adapt the host:port to your environment + test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] + interval: 60s + timeout: 10s + retries: 3 + start_period: 40s networks: traefik: external: true \ No newline at end of file