From 5982781c9e68b2964144a78fc543deddce2097ee Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Fri, 28 Aug 2026 18:55:05 -0400 Subject: [PATCH] fix(docker): enable healthcheck in Dockerfile with updated parameters --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b993c08..6e84c3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -184,9 +184,8 @@ EXPOSE 3000 # Liveness probe hooked into our `/api/health` route (no DB dependency, # so a transient DB outage does NOT cycle the container). -#HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ -# CMD wget -qO- "http://127.0.0.1:${PORT:-3000}/api/health" >/dev/null 2>&1 || exit 1 -# NOTE: HEALTHCHECK IS DISABLED HERE - COOLIFY HEALTHCHECK IS EASIER TO MANAGE +HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \ + CMD wget -qO- "http://127.0.0.1:${PORT:-3000}/api/health" >/dev/null 2>&1 || exit 1 COPY --chmod=755 docker-entrypoint.sh /docker-entrypoint.sh @@ -196,4 +195,4 @@ USER node # installed for the `docker exec` one-shot bins, not for the web runtime # (Next is shipped and tested on Node). ENTRYPOINT ["/bin/sh", "/docker-entrypoint.sh"] -CMD ["node", "server.js"] \ No newline at end of file +CMD ["node", "server.js"]