From d11873a1d50f345a0aa83dedfd27f4e25b935458 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Sun, 12 Apr 2026 12:24:40 +0200 Subject: [PATCH] healthcheck: switch from HTTP to TCP to avoid 403 log noise --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 14d45ac..88a6d68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ FROM mitmproxy/mitmproxy:latest -RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* EXPOSE 8888 8081 HEALTHCHECK --interval=10s --timeout=5s --retries=10 --start-period=30s \ - CMD curl -sf -o /dev/null -w "%{http_code}" http://localhost:8081/ | grep -qE "200|403" || exit 1 + CMD nc -z localhost 8081 || exit 1 ENTRYPOINT ["mitmweb", "--web-host", "0.0.0.0", "--web-port", "8081", "-p", "8888", "--ssl-insecure", "--set", "web_open_browser=false", "--set", "web_password=mitm"]