From be016f920c4b909d03dafeb69f2490c2cfd2bf16 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Wed, 1 Jul 2026 14:37:56 +0200 Subject: [PATCH] fix(portal-self-service): health-check nginx over IPv4 (127.0.0.1) (refs #68) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nginx listens on IPv4 only (listen 80), but 'localhost' inside the container resolves to ::1 first, so the wget healthcheck got connection-refused and self-service never went healthy — timing out the CI stack bring-up. Probe 127.0.0.1 instead. Co-Authored-By: Claude Opus 4.8 (1M context) --- infra/docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/docker-compose.yml b/infra/docker-compose.yml index 7a51c3f..4dceacd 100644 --- a/infra/docker-compose.yml +++ b/infra/docker-compose.yml @@ -445,7 +445,8 @@ services: ports: - "8140:80" healthcheck: - test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost/ || exit 1"] + # 127.0.0.1, not localhost: nginx listens on IPv4 only, but localhost resolves to ::1 first. + test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1/ || exit 1"] interval: 5s timeout: 3s retries: 5