summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hooks/Dockerfile3
-rw-r--r--worker/Dockerfile3
2 files changed, 5 insertions, 1 deletions
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" ]