From 83da374bbb83673148760e2a5e035b6421610a7c Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 20 Feb 2026 02:49:51 -0800 Subject: [PATCH] fix: use 127.0.0.1 in web-admin healthcheck to avoid IPv6 resolution Node.js 18 resolves 'localhost' to ::1 (IPv6) but Next.js standalone only binds to 0.0.0.0 (IPv4), causing Connection Refused. Co-Authored-By: Claude Opus 4.6 --- deploy/docker/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 6a0aaa6..22e4a26 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -326,7 +326,7 @@ services: - NEXT_PUBLIC_API_BASE_URL=/api/proxy - NEXT_PUBLIC_WS_URL=ws://localhost:18000 healthcheck: - test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/',r=>{process.exit(r.statusCode<500?0:1)}).on('error',()=>process.exit(1))\""] + test: ["CMD-SHELL", "node -e \"require('http').get('http://127.0.0.1:3000/',r=>{process.exit(r.statusCode<500?0:1)}).on('error',()=>process.exit(1))\""] interval: 30s timeout: 5s retries: 3