1
0
Fork 0

fix(docker): enable healthcheck in Dockerfile with updated parameters

This commit is contained in:
Jason Fraley 2026-08-28 18:55:05 -04:00
parent 3faa01353d
commit 5982781c9e

View file

@ -184,9 +184,8 @@ EXPOSE 3000
# Liveness probe hooked into our `/api/health` route (no DB dependency, # Liveness probe hooked into our `/api/health` route (no DB dependency,
# so a transient DB outage does NOT cycle the container). # so a transient DB outage does NOT cycle the container).
#HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ 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 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
COPY --chmod=755 docker-entrypoint.sh /docker-entrypoint.sh 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 # installed for the `docker exec` one-shot bins, not for the web runtime
# (Next is shipped and tested on Node). # (Next is shipped and tested on Node).
ENTRYPOINT ["/bin/sh", "/docker-entrypoint.sh"] ENTRYPOINT ["/bin/sh", "/docker-entrypoint.sh"]
CMD ["node", "server.js"] CMD ["node", "server.js"]