fix: healthcheck — use IPv4 and busybox-compatible nc

The Alpine runtime stage uses BusyBox nc, which has no -z flag, and
'localhost' resolves to ::1 while finger only binds 0.0.0.0:79. Both
combined caused every healthcheck to fail (35k+ failing streak on
mammut). Use '-w 1 127.0.0.1 79 < /dev/null' instead.
This commit is contained in:
pmb
2026-05-16 21:06:05 -07:00
parent 6d782366f3
commit 676d1700e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ services:
- ./users:/var/finger/users
restart: unless-stopped
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "79"]
test: ["CMD-SHELL", "nc -w 1 127.0.0.1 79 < /dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 3