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"]