From 527fb237e90434733fdf3fbfc8a794ffdf4ff578 Mon Sep 17 00:00:00 2001 From: Vivek Date: Sun, 31 May 2026 06:45:14 +0000 Subject: [PATCH] Fix healthcheck: use 127.0.0.1 instead of localhost (IPv6 issue) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13b1919..5f75033 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY webapp/.env ./.env ENV NODE_ENV=production EXPOSE 3000 -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1 +HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \ + CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/health || exit 1 CMD ["node", "src/server.js"]