From 67cf62b536f808bf3857d6669c31b8c5eeb36b3a Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Wed, 4 Nov 2026 20:11:05 -0300 Subject: [PATCH] fix(auth): make the image HEALTHCHECK follow the transport mode In tls mode the daemon speaks HTTPS only, so the plain-HTTP probe left the container permanently unhealthy. The probe now uses curl -k against https://127.0.0.1 when ACAUA_TRANSPORT=tls (loopback to itself, status only). Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 03ebba6..0c0ed69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,6 @@ USER acaua WORKDIR /data EXPOSE 8787 HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ - CMD curl -fsS http://127.0.0.1:8787/api/health >/dev/null || exit 1 + CMD ["sh", "-c", "if [ \"$ACAUA_TRANSPORT\" = tls ]; then curl -kfsS https://127.0.0.1:8787/api/health; else curl -fsS http://127.0.0.1:8787/api/health; fi >/dev/null || exit 1"] ENTRYPOINT ["acaua"] CMD ["serve", "--bind", "0.0.0.0:8787", "--data-dir", "/data/acaua"]