From 355fbf6ad5c410e4334767082f1825be2706cf38 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 16 Feb 2024 03:15:25 +0000 Subject: [PATCH] Update stack.production.yml --- stack.production.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stack.production.yml b/stack.production.yml index 7cb63cc..dd00c5c 100644 --- a/stack.production.yml +++ b/stack.production.yml @@ -27,6 +27,12 @@ services: - NTFY_DATA_DIR=/data command: - serve + healthcheck: + 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