Fix healthcheck command to use 127.0.0.1 instead of localhost (#669)

* Fix healthcheck command to use 127.0.0.1 instead of localhost

* Re-add timeout to healthcheck

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Docker healthcheck command

Removed the '-t 1' option from the wget command added by Copilot in the Docker healthcheck as it is not supported in the BusyBox build.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Justus 2025-12-06 21:59:16 +01:00 committed by GitHub
parent 9665ba1f62
commit a6c133277f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,7 +126,7 @@ ENV NODE_ENV=production \
SWAGGER_ENABLED=false
HEALTHCHECK --interval=60s --timeout=3s --start-period=10s --retries=2 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3002/api/health || exit 1
CMD wget -q -T 3 --spider http://127.0.0.1:3002/api/health || exit 1
WORKDIR /app/backend
ENTRYPOINT ["/app/scripts/docker-entrypoint.sh"]