Hardened rootless Healthchecks.io cron monitor on Debian 13 (trixie-slim), 0 fixable CVEs.
781
A hardened, rootless multi-arch Healthchecks (healthchecks.io) self-hosted cron and background-job monitoring server built from official healthchecks/healthchecks source on Debian 13 (trixie-slim) + Python 3.13 — maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/healthchecksghcr.io/dgcosenza/healthchecks (identical signed multi-arch digest)dgcosenza/healthchecks-dockerdgcosenza/healthchecks is a drop-in, CVE-remediated replacement for the official healthchecks/healthchecks image. It compiles all native wheels (psycopg[c], mysqlclient, pycurl, apprise, minio, gunicorn) in an isolated builder stage with patched Python dependencies, runs strictly as non-root hc (UID/GID 1000:1000) under tini PID 1, supports Docker secret files (SECRET_KEY_FILE, DB_PASSWORD_FILE), and probes the live database-backed /health endpoint via fetchstatus.py.
| Component | Resolved Version |
|---|---|
| Healthchecks | 5.0.3 |
| Python | 3.13 (Debian 13) |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 104.3 MB, arm64: 322.7 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/healthchecks@sha256:ecb4bdf64253353bfbe1e6e16be1cab69595179850d925ec8eaba6b02062c423 |
| GHCR mirror | ghcr.io/dgcosenza/healthchecks@sha256:ecb4bdf64253353bfbe1e6e16be1cab69595179850d925ec8eaba6b02062c423 |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (24 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
latest | Moving | Latest verified multi-arch build passing all CVE, Dive, and smoke gates. |
<version> (e.g. 5.0.3) | Moving | Latest verified build for that Healthchecks release. |
<version>-<YYYYMMDD> | Immutable | Date-stamped daily security rebuild. |
sha-<short> | Immutable | Git commit tag from this repository. |
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Live migrations, Gunicorn + alert/report workers, /health probe, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
linux/arm64 | Published & natively tested | Live migrations, Gunicorn + alert/report workers, /health probe, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
Volume ownership note:
docker-compose.example.ymldefaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by1000:1000(mkdir -p ./data && chown 1000:1000 ./data) beforedocker compose up -d.
mkdir -p ./data ./secrets && chown 1000:1000 ./data
openssl rand -hex 32 > ./secrets/hc_secret_key.txt
chmod 600 ./secrets/hc_secret_key.txt
docker run -d --name healthchecks --restart unless-stopped \
--cap-drop ALL --security-opt no-new-privileges:true \
-p 127.0.0.1:8000:8000 \
-v "$(pwd)/data:/data" \
-v "$(pwd)/secrets/hc_secret_key.txt:/run/secrets/hc_secret_key:ro" \
-e DB=sqlite -e DB_NAME=/data/hc.sqlite \
-e SECRET_KEY_FILE=/run/secrets/hc_secret_key \
-e ALLOWED_HOSTS="127.0.0.1,localhost" -e SITE_ROOT="http://127.0.0.1:8000" \
dgcosenza/healthchecks:latest
See docker-compose.example.yml.
Supports all official Healthchecks environment variables (DB, DB_HOST, DB_NAME, DB_USER, DB_PASSWORD, SECRET_KEY, ALLOWED_HOSTS, SITE_ROOT, EMAIL_*, SMTPD_PORT, GUNICORN_PORT, GUNICORN_WORKERS, APPRISE_ENABLED) plus Docker secret file helpers:
| Variable | Default | Description |
|---|---|---|
SECRET_KEY_FILE | (empty) | Path to secret file exported as SECRET_KEY. |
DB_PASSWORD_FILE | (empty) | Path to secret file exported as DB_PASSWORD. |
GUNICORN_PORT | 8000 | HTTP listening port. |
GUNICORN_WORKERS | 4 | Number of Gunicorn worker processes. |
TZ | Etc/UTC | Container timezone. |
Ports: 8000/tcp (optional SMTPD_PORT when enabled). Volumes: /data (SQLite database when using DB=sqlite, owned by 1000:1000). User: hc (UID/GID 1000:1000). PID 1: tini.
HEALTHCHECK --interval=30s --timeout=5s --start-period=25s --retries=3 \
CMD ["/opt/healthchecks/fetchstatus.py"]
Probes http://127.0.0.1:${GUNICORN_PORT}/health (which bypasses ALLOWED_HOSTS and executes a live database check). Verified on amd64 and arm64; do not disable in Compose.
healthchecks/healthchecks/data/hc.sqlite (ensure /data is owned by 1000:1000).dgcosenza/healthchecks@sha256:<digest>; run.sh executes ./manage.py migrate --noinput automatically on startup.cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/healthchecks-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/healthchecks:latest
gh attestation verify oci://ghcr.io/dgcosenza/healthchecks:latest --owner dgcosenza
UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on Syft SPDX SBOM (--only-fixed --fail-on negligible) across both OS packages and Python wheels on amd64 and arm64.1000:1000 with cap_drop: [ALL] and no-new-privileges:true; build-essential and -dev headers remain exclusively in Stage 1.SECURITY.md.docker buildx build --platform linux/amd64 --load -t dgcosenza/healthchecks:local .
./tests/smoke.sh dgcosenza/healthchecks:local
.github/workflows/daily.yml runs daily at 05:45 UTC with --no-cache: resolves latest healthchecks/healthchecks release and debian:13.8-slim digest; rebuilds patched wheels on Debian Security-maintained Python 3.13; runs live smoke + Dive + Trivy + Grype gates on amd64 and arm64; publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional secondary OCI mirrors); syncs docs & Hub overview; and manages a single ci-failure issue.
urllib3, msgpack, oauthlib, setuptools) and keeps compilers out of the runtime image.tini: Cleanly shuts down gunicorn, sendalerts, sendreports, and optional smtpd on SIGTERM.packaging: MIT): MIT License — copyright Daniel G. Cosenza from FNX Labs.healthchecks/healthchecks (upstream: BSD-3-Clause): BSD-3-Clause License. See THIRD-PARTY-NOTICES.md.Maintained by Daniel G. Cosenza from FNX Labs. Upstream: healthchecks/healthchecks.
Content type
Image
Digest
sha256:ecb4bdf64…
Size
99.4 MB
Last updated
about 3 hours ago
docker pull dgcosenza/healthchecks