Fix healthcheck: use 127.0.0.1 instead of localhost (IPv6 issue)

This commit is contained in:
Vivek 2026-05-31 06:45:14 +00:00
parent 3af6dcacdf
commit 527fb237e9

View file

@ -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"]