Files
finger/docker-compose.yml
T
pmb 676d1700e1 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.
2026-05-16 21:06:05 -07:00

26 lines
551 B
YAML

version: '3.8'
services:
finger:
build: .
ports:
- "79:79"
volumes:
- ./users:/var/finger/users
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "nc -w 1 127.0.0.1 79 < /dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Example using published image instead of building locally
# finger:
# image: ghcr.io/waffle2k/finger:latest
# ports:
# - "79:79"
# volumes:
# - ./users:/var/finger/users
# restart: unless-stopped