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 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc8c7fa248
commit
67cf62b536
1 file changed
+1
-1
+1
-1
@@ -47,6 +47,6 @@ USER acaua
|
|||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
EXPOSE 8787
|
EXPOSE 8787
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
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"]
|
ENTRYPOINT ["acaua"]
|
||||||
CMD ["serve", "--bind", "0.0.0.0:8787", "--data-dir", "/data/acaua"]
|
CMD ["serve", "--bind", "0.0.0.0:8787", "--data-dir", "/data/acaua"]
|
||||||
Reference in new issue
Block a user