From ef821b2c2de8cd7ba7f9b1456cf4225a37ee3b63 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:19:46 +0200 Subject: [PATCH] add healthcheck to azimutt --- templates/compose/azimutt.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/compose/azimutt.yaml b/templates/compose/azimutt.yaml index fcf75d061..faedefa0e 100644 --- a/templates/compose/azimutt.yaml +++ b/templates/compose/azimutt.yaml @@ -90,3 +90,9 @@ services: - SMTP_USERNAME=$SERVICE_EMAIL_SMTP - SMTP_PASSWORD=$SERVICE_PASSWORD_SMTP - SMTP_PORT=${SMTP_PORT:-587} + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:${PORT:-4000}/ping"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s