HUB
Sign inSign up
uptime-kuma logo

dgcosenza/uptime-kuma

By dgcosenza

•Updated about 4 hours ago

Hardened rootless Uptime Kuma monitoring server on Debian 13 (multi-arch, 0 fixable CVEs).

Image
0

311

dgcosenza/uptime-kuma repository overview

⁠Uptime Kuma — Hardened Debian 13 (trixie-slim) Container Image

Daily CI OpenSSF Scorecard Workflow Gitleaks Secret Scan Public Content Check OpenSSF Scorecard OpenSSF Best Practices

Trivy + Grype: 0 Fixable CVEs Signed: Cosign OIDC SLSA Build L3 SBOM: SPDX + CycloneDX Base OS Architectures Healthcheck: CI Verified Renovate Enabled Dependabot Enabled Daily Rebuilds

Latest Release Release Date Last Commit Docker Pulls Docker Image Size Registries: Docker Hub + GHCR Packaging License: MIT Upstream License GitHub Issues FNX Labs Catalog

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.

⁠Overview

dgcosenza/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.

⁠Current Versions

ComponentResolved Version
Uptime Kuma2.5.12
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/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 digestdgcosenza/uptime-kuma@sha256:fc5e4831ba8c996e69592a215fbe810ca296344453e0436980ed316c1db0a4bd
GHCR mirrorghcr.io/dgcosenza/uptime-kuma@sha256:fc5e4831ba8c996e69592a215fbe810ca296344453e0436980ed316c1db0a4bd
Supply chainCosign 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)

⁠Supported Tags

TagPolicyDescription
latestMovingLatest verified multi-arch build passing all CVE, Dive, and smoke gates.
<version> (e.g. 2.5.12)MovingLatest verified build for that upstream release.
<version>-<YYYYMMDD>ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutableGit commit tag from this repository.

Pin production deployments by immutable digest: dgcosenza/uptime-kuma@sha256:<digest> or ghcr.io/dgcosenza/uptime-kuma@sha256:<digest>.

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedNative x86_64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedNative ARM64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.

⁠Quick Start

Volume ownership note: docker-compose.example.yml defaults 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 by 1000:1000 before docker 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

⁠Compose Example

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:

⁠Configuration

VariableDefaultDescription
UPTIME_KUMA_PORT3001HTTP listening port for the Uptime Kuma WebUI and API.
UPTIME_KUMA_HOST0.0.0.0Listening bind address inside the container.
DATA_DIR/app/dataPersistent SQLite database and configuration directory.
ALLOW_EPHEMERAL_FALLBACKfalseSet to true only to allow /tmp fallback when a mounted /app/data volume is not writable.
TZEtc/UTCContainer 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

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.

⁠Upgrade / Migration from louislam/uptime-kuma

  1. Ensure the host /app/data volume is owned by 1000:1000 (chown -R 1000:1000 ./data) or use a Docker named volume.
  2. Replace image with dgcosenza/uptime-kuma@sha256:<digest>.

⁠Supply-Chain Verification

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

⁠Security

  • 0 fixable vulnerabilities of any severity: Hard-gated in CI by Trivy (UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on the Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.
  • Hardened runtime: Runs under tini PID 1 with least-privilege capabilities and no-new-privileges:true.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

docker buildx build --platform linux/amd64 --load -t dgcosenza/uptime-kuma:local .
./tests/smoke.sh dgcosenza/uptime-kuma:local

⁠Update Policy

.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.

⁠Design Decisions

  • Zero npm in runtime: Copies only /usr/local/bin/node and patched production node_modules into debian:13.8-slim.
  • Fail-fast persistence guard: Refuses to silently write SQLite state to /tmp if an operator bind-mounts a root:root directory onto /app/data.

⁠License

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⁠.

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream project: louislam/uptime-kuma⁠.

Tag summary

Content type

Image

Digest

sha256:fc5e4831b…

Size

131.3 MB

Last updated

about 4 hours ago

docker pull dgcosenza/uptime-kuma