replace localhost with 127.0.0.1 in syncserver Dockerfile (#3673)

* Add myself to CONTRIBUTORS file

* replace localhost with 127.0.0.1 in syncserver Dockerfile

The healthcheck was failing, presumably because localhost was resolving to ::1
(IPv6), as detailed in this issue: https://github.com/maildev/maildev/pull/500
This commit is contained in:
Omar Kohl 2025-01-04 23:24:29 +01:00 committed by GitHub
parent 9877e22fd2
commit 6f2c959dc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,6 @@ CMD ["anki-sync-server"]
# This health check will work for Anki versions 24.08.x and newer.
# For older versions, it may incorrectly report an unhealthy status, which should not be the case.
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:${SYNC_PORT}/health || exit 1
CMD wget -qO- http://127.0.0.1:${SYNC_PORT}/health || exit 1
LABEL maintainer="Jean Khawand <jk@jeankhawand.com>"