From abbb99fe7499f91241dc6eb7336007ea5e354db2 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sat, 18 Jul 2026 17:29:47 +0200 Subject: [PATCH] fix: frontend healthcheck use 127.0.0.1 and bind to 0.0.0.0 --- docker-compose.yml | 2 ++ frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 04a83c5..16cca5f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -61,6 +61,8 @@ services: environment: - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:8000/api/v1} - NODE_ENV=production + - HOSTNAME=0.0.0.0 + - PORT=3000 depends_on: backend: condition: service_healthy diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 7f77172..e49e2cf 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -41,6 +41,6 @@ EXPOSE 3000 # Health check HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=10s \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1 + CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/ || exit 1 CMD ["node", "server.js"]