mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-10-19 15:44:27 +00:00
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:
parent
cd89a2f38b
commit
a5bf46a029
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue