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.
This commit is contained in:
Thierry CH. 2026-09-15 18:56:49 +02:00
parent cd89a2f38b
commit a5bf46a029

View file

@ -2,5 +2,6 @@ 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://localhost:3000/v1/health || exit 1
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/v1/health || exit 1