Home Server › Containers

Homelab uptime monitoring and status pages with Uptime Kuma

Deploy Uptime Kuma v1 with Docker Compose to monitor HTTP endpoints and containers, send instant Telegram alerts, and publish a public status page.

Homelab uptime monitoring and status pages with Uptime Kuma

Running a full Prometheus and Grafana stack just to know when a blog or API goes down is overkill on a small homelab. Here is how I deploy Uptime Kuma with Docker Compose to watch HTTP endpoints and Docker containers, fire Telegram alerts, and host a public status page.

Note: This guide targets Uptime Kuma v1 (1.23.16). If you are starting fresh on v2 with Docker socket isolation, see my updated guide on homelab service monitoring with Uptime Kuma v2.


Why lightweight monitoring fits a homelab

Self-hosted services rarely announce when they break. Without active checks, you usually find out hours later when you try to open a page and hit a 502 error:

  • A backend container gets OOM-killed or exits after a bad deployment script
  • A Let’s Encrypt certificate renewal fails silently and blocks HTTPS access
  • A database healthcheck passes, but the web proxy loses its upstream port binding

Prometheus plus Grafana is the standard answer for metrics, and I do run them for system-level telemetry (see collecting homelab metrics with Prometheus and Node Exporter and building Grafana dashboards and alerts). Still, for pure liveness checks, that stack brings noticeable overhead:

CriterionPrometheus + Grafana + AlertmanagerUptime Kuma v1
Memory footprintHundreds of MB to several GB (TSDB + exporters)~100 MB single container
Alert setupPromQL rules + Alertmanager YAMLPoint-and-click web UI
Public status pageRequires external toolingBuilt-in (/status/<slug>)
Best use caseTime-series metrics, CPU/RAM/JVM trendsBinary uptime, SSL expiry, container liveness

Uptime Kuma runs on Node.js, Vue.js, and SQLite inside a single lightweight container. In a few minutes, you can register HTTP(s), TCP, DNS, and Docker container monitors and attach Telegram or webhook notifications.

When not to use Uptime Kuma: Don’t use it for high-cardinality application metrics, p99 latency histograms, or distributed tracing. It answers “is this endpoint reachable right now?”—not “why is my JVM heap climbing?”


Architecture and healthcheck flow

Uptime Kuma polls each target on a fixed interval (60 seconds by default), recording HTTP status codes and response times in a local SQLite database (kuma.db). By mounting the host’s Docker socket (/var/run/docker.sock) read-only, it can also inspect container lifecycle states directly without exposing internal ports.

flowchart TD
    subgraph Host["Docker Host"]
        DockerSock["Docker Daemon Socket<br/>(/var/run/docker.sock)"]
        Services["Running Services<br/>(Web, DB, API Containers)"]
    end

    subgraph Monitoring["Monitoring Layer (Docker Compose)"]
        UK["Uptime Kuma<br/>(Port 3001)"]
        VolUK[("kuma_data<br/>(SQLite kuma.db)")]
        UK --> VolUK
    end

    subgraph Ingress["External Access & Alerts"]
        NPM["Nginx Proxy Manager<br/>(TLS / status.example.com)"]
        Telegram["Telegram Bot API<br/>(Instant Push Alerts)"]
        Public["Visitors / Teammates<br/>(Public Status Page)"]
    end

    UK -->|"Read-Only Socket Mount"| DockerSock
    UK -->|"HTTP / TCP Probes"| Services
    DockerSock -.->|"Container State"| Services
    NPM -->|"http://uptime-kuma:3001"| UK
    Public -->|"HTTPS"| NPM
    UK -->|"Down / Up Alerts"| Telegram

Docker Compose setup and socket hardening

Create a dedicated directory for the Compose file and persistent SQLite volume:

1
2
3
uptime-kuma/
├── docker-compose.yml
└── data/

Write docker-compose.yml with the Docker socket mounted read-only (:ro) and privilege escalation disabled:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# docker-compose.yml
services:
  uptime-kuma:
    image: louislam/uptime-kuma:1.23.16
    container_name: uptime-kuma
    restart: always
    ports:
      - "3001:3001"
    volumes:
      - ./data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock:ro # Read-only mount for container monitoring
    environment:
      - UPTIME_KUMA_PORT=3001
      - TZ=Asia/Seoul
    networks:
      - homelab-network
    security_opt:
      - no-new-privileges:true

networks:
  homelab-network:
    name: homelab-network
    driver: bridge

/var/run/docker.sock grants effective root control over the host Docker daemon. Even with :ro, a compromised container can still query the Docker API. Always add :ro and no-new-privileges:true at minimum—and if you expose Uptime Kuma publicly, consider placing a read-only Docker socket proxy in front of it (covered in my Uptime Kuma v2 guide).

Start the container in detached mode:

1
docker compose up -d

Reverse proxy and WebSocket setup

Uptime Kuma streams live heartbeat bars and latency charts to the browser over WebSockets. When placing it behind Nginx Proxy Manager (NPM), make sure Websockets Support is switched on:

  1. Domain Names: status.example.com
  2. Forward Scheme / IP / Port: http / uptime-kuma (or host LAN IP) / 3001
  3. Websockets Support: ON (required)
  4. SSL: Issue a Let’s Encrypt certificate and enable Force SSL and HTTP/2 Support

If you forget WebSockets, the dashboard displays a persistent Cannot connect to the socket server banner and live ping updates stop refreshing.


Adding HTTP, SSL, and container monitors

Visit https://status.example.com, create the admin account, and click Add New Monitor in the top-left corner.

HTTP(s) endpoints and SSL expiry alerts

For web apps and APIs, HTTP monitoring covers both availability and certificate renewals:

  • Monitor Type: HTTP(s)
  • URL: https://api.example.com/health
  • Heartbeat Interval: 60 seconds
  • Retries: 2 (filters out single-packet network blips to prevent false alarms)
  • Certificate Expiry Notification: ON
    • Enable warnings at 14 days and 7 days before expiry so a broken ACME renewal never catches you off guard.

Docker container liveness

For background workers or databases that don’t expose an HTTP port (like a queue worker or PostgreSQL container):

  • Monitor Type: Docker Container
  • Docker Daemon: Local (/var/run/docker.sock)
  • Container Name / ID: n8n-app or n8n-postgres

If the container exits with a non-zero status code or enters a crash-restart loop, Uptime Kuma flags it immediately.

Instant Telegram alerts

To get mobile push alerts within seconds of an outage:

  1. Create a bot through @BotFather on Telegram and copy the API Token.
  2. Find the target channel or personal Chat ID.
  3. In Uptime Kuma, go to Settings > Notification > Setup Notification.
  4. Select Telegram and enter your credentials:
    • Bot Token: ${TELEGRAM_BOT_TOKEN} (e.g., 123456789:AAHxxxxxxxxx_xxxxxxxxx)
    • Chat ID: ${TELEGRAM_CHAT_ID}

When a service drops, you receive a concise alert:

1
2
3
4
[Service Down] api-gateway
URL: https://api.example.com/health
Error: 502 Bad Gateway
Time: 2026-11-01 10:45:12 (KST)

Once the probe succeeds again, Uptime Kuma automatically sends a matching recovery notification. You can also point a webhook notification at a self-hosted n8n pipeline if you want to archive incidents in Notion or trigger automated remediation.


Publishing a custom public status page

One of Uptime Kuma’s best built-in features is hosting a read-only Status Page that teammates or visitors can view without logging in.

flowchart TD
    Admin["Admin Console<br/>(Authenticated)"] -->|"Group Monitors"| Page["Public Status Page<br/>(/status/homelab)"]
    Page --> GroupA["Core Infrastructure<br/>(DNS, Proxy, Docker)"]
    Page --> GroupB["Web Applications<br/>(Blog, API, Nextcloud)"]
    Page --> GroupC["Automation Services<br/>(n8n, Stirling-PDF)"]

To publish one:

  1. Open Status Pages in the top navigation bar and click New Status Page.
  2. Title: Namju's Homelab Status
  3. URL Slug: /status/homelab
  4. Description: Live homelab infrastructure and service uptime dashboard
  5. Group Services:
    • Core Infrastructure: NPM, PostgreSQL, Redis
    • Applications: Blog, Uptime Kuma, n8n
  6. Custom CSS / Footer: Add a link back to your site (https://namju.kim) or custom branding.

Visitors get a clean 90-day uptime percentage (for example, 99.98%) and per-day status bars without ever touching your admin login.


Operational caveats and checklist

  • Watch out for single-host blind spots: If Uptime Kuma runs on the same physical server as the apps it monitors, a power outage or router failure kills the monitor too. For critical services, pair it with an external ping check or a cheap off-site VPS.
  • Prune SQLite history periodically: Under Settings > Monitor History, cap retention (e.g., 90–180 days) so kuma.db doesn’t grow unbounded on a small SSD.
  • Pre-launch checklist:
    • /var/run/docker.sock mounted with :ro and no-new-privileges:true set
    • Websockets Support enabled in Nginx Proxy Manager
    • Retries set to at least 2 on HTTP monitors to reduce noisy alerts
    • Certificate expiry notifications enabled for HTTPS endpoints
    • Test notification verified in Telegram before relying on it
This post is licensed under CC BY 4.0 by the author.