SurfSense/docker/keygen/web/Dockerfile
Thierry CH. a5bf46a029 fix(keygen): probe health on 127.0.0.1, not localhost
localhost resolves to ::1 inside the container while Puma binds 0.0.0.0, so every healthcheck got connection refused regardless of Keygen's state.
2026-09-15 18:56:49 +02:00

7 lines
275 B
Docker

FROM keygen/api:v1.7.2
EXPOSE 3000
# 127.0.0.1, not localhost: that resolves to ::1 here and Puma binds 0.0.0.0.
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=5 \
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/v1/health || exit 1