From 6f2c959dc3fe048e0355bf2997ed994a1dbe9ce6 Mon Sep 17 00:00:00 2001 From: Omar Kohl Date: Sat, 4 Jan 2025 23:24:29 +0100 Subject: [PATCH] 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 --- docs/syncserver/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/syncserver/Dockerfile b/docs/syncserver/Dockerfile index c436e50e9..6ad83f43b 100644 --- a/docs/syncserver/Dockerfile +++ b/docs/syncserver/Dockerfile @@ -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 " \ No newline at end of file +LABEL maintainer="Jean Khawand "