From 65682958b2bce3beef90c63e03b7ce73e4d75472 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Mon, 26 May 2025 14:55:29 -0700 Subject: Fix healthchecks in hook server, add to worker as well --- hooks/Dockerfile | 3 ++- worker/Dockerfile | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hooks/Dockerfile b/hooks/Dockerfile index d7763a1..b4729db 100644 --- a/hooks/Dockerfile +++ b/hooks/Dockerfile @@ -1,5 +1,6 @@ FROM oci.liz.coffee/@emprespresso/ci-base:release AS hooks -HEALTHCHECK [ "curl --fail http://localhost:9000/health" ] +HEALTHCHECK --interval=10s --retries=3 --start-period=3s \ + CMD [ "curl --fail http://localhost:9000/health" ] CMD [ "/app/hooks/mod.ts" ] diff --git a/worker/Dockerfile b/worker/Dockerfile index a3e2e12..c58789a 100644 --- a/worker/Dockerfile +++ b/worker/Dockerfile @@ -29,4 +29,7 @@ USER laminar WORKDIR /var/lib/laminar EXPOSE 8080 +HEALTHCHECK --interval=10s --retries=3 --start-period=3s \ + CMD [ "/usr/bin/laminarc show-jobs" ] + CMD [ "/usr/sbin/laminard" ] -- cgit v1.2.3-70-g09d2