From 522e3e476b0def71c117d14aaf0d1d146003f7fa Mon Sep 17 00:00:00 2001 From: Julian Cuni Date: Sun, 3 May 2026 16:34:27 +0000 Subject: [PATCH] Use 127.0.0.1 in healthchecks (localhost resolves to ::1 in alpine, nginx/directus listen IPv4 only) --- compose.dev.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.dev.yaml b/compose.dev.yaml index 549f9ad..5afe4f7 100644 --- a/compose.dev.yaml +++ b/compose.dev.yaml @@ -268,7 +268,7 @@ services: # Single backend service shared by all three routers above. - "traefik.http.services.trm-directus.loadbalancer.server.port=8055" healthcheck: - test: ['CMD-SHELL', 'wget -qO- http://localhost:8055/server/health || exit 1'] + test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:8055/server/health || exit 1'] interval: 30s timeout: 10s # First boot includes Directus's internal migrations (~30–45 s on @@ -315,7 +315,7 @@ services: - "traefik.http.routers.trm-spa.tls.certresolver=le" - "traefik.http.services.trm-spa.loadbalancer.server.port=80" healthcheck: - test: ['CMD-SHELL', 'wget -qO- http://localhost/ || exit 1'] + test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1/ || exit 1'] interval: 30s timeout: 5s start_period: 5s