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