Hardened rootless Uptime Kuma monitoring server on Debian 13 (multi-arch, 0 fixable CVEs).
311
A hardened, rootless Uptime Kuma self-hosted monitoring server built from official upstream releases on Debian 13 (trixie-slim) + Node 24 LTS with zero runtime npm and 0 fixable CVEs. Maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/uptime-kumaghcr.io/dgcosenza/uptime-kuma (identical signed multi-arch digest)dgcosenza/uptime-kuma-dockerdgcosenza/uptime-kuma is a hardened, drop-in rootless replacement for louislam/uptime-kuma:2-slim-rootless. It builds official louislam/uptime-kuma releases with patched production dependencies in a Node 24 LTS builder stage, copies only /usr/local/bin/node and the production application tree into debian:13.8-slim (eliminating npm, corepack, and build toolchains from the runtime image), and runs strictly as non-root UID/GID 1000:1000 under tini PID 1 with a fail-fast volume writability guard on /app/data.
| Component | Resolved Version |
|---|---|
| Uptime Kuma | 2.5.12 |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 137.7 MB, arm64: 443.7 MB |
| Last verified build (UTC) | 2026-11-29 |
| Published multi-arch digest | dgcosenza/uptime-kuma@sha256:fc5e4831ba8c996e69592a215fbe810ca296344453e0436980ed316c1db0a4bd |
| GHCR mirror | ghcr.io/dgcosenza/uptime-kuma@sha256:fc5e4831ba8c996e69592a215fbe810ca296344453e0436980ed316c1db0a4bd |
| 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 (15 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
latest | Moving | Latest verified multi-arch build passing all CVE, Dive, and smoke gates. |
<version> (e.g. 2.5.12) | Moving | Latest verified build for that upstream release. |
<version>-<YYYYMMDD> | Immutable | Date-stamped daily security rebuild. |
sha-<short> | Immutable | Git commit tag from this repository. |
Pin production deployments by immutable digest: dgcosenza/uptime-kuma@sha256:<digest> or ghcr.io/dgcosenza/uptime-kuma@sha256:<digest>.
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Native x86_64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
linux/arm64 | Published & natively tested | Native ARM64 build, smoke test, 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:1000beforedocker compose up -d.
docker run -d --name uptime-kuma --restart unless-stopped \
--cap-drop ALL --cap-add NET_RAW --security-opt no-new-privileges:true \
-p 127.0.0.1:3001:3001 \
-v uptime_kuma_data:/app/data \
dgcosenza/uptime-kuma:latest
See docker-compose.example.yml:
services:
uptime-kuma:
image: dgcosenza/uptime-kuma:latest
container_name: uptime-kuma
restart: unless-stopped
cap_drop:
- ALL
cap_add:
- NET_RAW
security_opt:
- no-new-privileges:true
ports:
- "127.0.0.1:3001:3001"
environment:
TZ: "Etc/UTC"
UPTIME_KUMA_PORT: "3001"
volumes:
- uptime_kuma_data:/app/data
volumes:
uptime_kuma_data:
| Variable | Default | Description |
|---|---|---|
UPTIME_KUMA_PORT | 3001 | HTTP listening port for the Uptime Kuma WebUI and API. |
UPTIME_KUMA_HOST | 0.0.0.0 | Listening bind address inside the container. |
DATA_DIR | /app/data | Persistent SQLite database and configuration directory. |
ALLOW_EPHEMERAL_FALLBACK | false | Set to true only to allow /tmp fallback when a mounted /app/data volume is not writable. |
TZ | Etc/UTC | Container timezone. |
Ports: 3001/tcp (Uptime Kuma WebUI). Volumes: /app/data (SQLite database, certificates, and monitor state). User: kuma (UID/GID 1000:1000). PID 1: tini.
HEALTHCHECK --interval=30s --timeout=10s --start-period=45s --retries=3 \
CMD ["/usr/local/bin/uptime-kuma-healthcheck"]
Follows redirects on http://127.0.0.1:${UPTIME_KUMA_PORT}/ and verifies that the Uptime Kuma web UI responds.
louislam/uptime-kuma/app/data volume is owned by 1000:1000 (chown -R 1000:1000 ./data) or use a Docker named volume.dgcosenza/uptime-kuma@sha256:<digest>.cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/uptime-kuma-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/uptime-kuma:latest
gh attestation verify oci://ghcr.io/dgcosenza/uptime-kuma:latest --owner dgcosenza
UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on the Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.tini PID 1 with least-privilege capabilities and no-new-privileges:true.SECURITY.md.docker buildx build --platform linux/amd64 --load -t dgcosenza/uptime-kuma:local .
./tests/smoke.sh dgcosenza/uptime-kuma:local
.github/workflows/daily.yml runs daily at 38 5 UTC with --no-cache: refreshes the debian:13.8-slim digest and OS security patches, runs smoke + Dive + Trivy + Grype gates on amd64 and arm64, publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional Quay.io, GitLab, Codeberg, and Amazon ECR Public mirrors when configured), creates a signed GitHub Release, syncs docs & Docker Hub overview, and manages a single ci-failure issue.
npm in runtime: Copies only /usr/local/bin/node and patched production node_modules into debian:13.8-slim./tmp if an operator bind-mounts a root:root directory onto /app/data.Packaging, scripts, workflows, and documentation (packaging: MIT, upstream: MIT) are licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs. Third-party upstream notices: THIRD-PARTY-NOTICES.md.
Maintained by Daniel G. Cosenza from FNX Labs. Upstream project: louislam/uptime-kuma.
Content type
Image
Digest
sha256:fc5e4831b…
Size
131.3 MB
Last updated
about 4 hours ago
docker pull dgcosenza/uptime-kuma