docker: web container reaps zombies; zim and help healthchecks can pass (#744)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

Caddy is PID 1 in the web container and reaps nothing.  The healthcheck's
busybox `wget --spider https://...` forks an `ssl_client` helper that is
orphaned to caddy and stays a zombie, one per check.  `init: true` runs
tini as PID 1 so they are reaped.

The zim healthcheck calls curl, which the debian:13 kiwix image does not
install, so every check exited 127.  The help healthcheck probed port
8086, which is Caddy's HTTPS proxy on the web container; mkdocs serves
on port 80 inside its own container.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lrnselfreliance 2026-10-02 15:49:18 -06:00 • committed by Roland
parent 8d6f5b5cad
commit 57e647c5b4
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,8 @@
FROM debian:13
ENV DOCKER=true
RUN apt update && apt-get install -y kiwix kiwix-tools
# curl is for the compose healthcheck.
RUN apt update && apt-get install -y kiwix kiwix-tools curl
# Committed blobs (e.g. the default Zim served when the media directory has no
# functioning zim files).