From e5869e0b190d5a6d023b241d0c13a48e415a646b Mon Sep 17 00:00:00 2001 From: Kyle Pope Date: Wed, 18 Mar 2026 17:55:06 +0800 Subject: [PATCH] Fix frontend healthcheck: use 127.0.0.1 instead of localhost Alpine resolves localhost to IPv6 [::1] but nginx only listens on IPv4, causing the healthcheck to fail with connection refused. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 58b9872..d369dd9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -62,7 +62,7 @@ services: networks: - frontend_net healthcheck: - test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:8080/"] + test: ["CMD", "wget", "--spider", "--quiet", "http://127.0.0.1:8080/"] interval: 15s timeout: 5s retries: 3