From d38f953dfc9fcdec1c4d5012d832ea308fd1b607 Mon Sep 17 00:00:00 2001 From: Fusion Date: Mon, 18 May 2026 10:49:20 +0200 Subject: [PATCH] fix: use 127.0.0.1 in web healthcheck to avoid IPv6 issues wget resolves 'localhost' to IPv6 [::1] but nginx only listens on IPv4 0.0.0.0:80, causing connection refused. Using 127.0.0.1 ensures IPv4 connection and healthy container status. --- apps/web/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 8d45df2..3a406b2 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -40,7 +40,7 @@ EXPOSE 80 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD wget --quiet --tries=1 --spider http://localhost/ || exit 1 + CMD wget --quiet --tries=1 --spider http://127.0.0.1/ || exit 1 # Start nginx CMD ["nginx", "-g", "daemon off;"]