Healthcheck: 127.0.0.1 (avoid IPv6 localhost refused)

This commit is contained in:
jtricerolph 2026-07-01 14:42:29 +00:00
parent 19f13cf412
commit ff745b3ec7

View file

@ -7,6 +7,6 @@ services:
- "${FRONTEND_PORT:-3000}:80" - "${FRONTEND_PORT:-3000}:80"
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost/health 2>/dev/null || wget -qO- http://localhost/ > /dev/null && echo ok || exit 1"] test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/health 2>/dev/null || wget -qO- http://127.0.0.1/ > /dev/null && echo ok || exit 1"]
interval: 15s interval: 15s
retries: 3 retries: 3