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.
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:
| Criterion | Prometheus + Grafana + Alertmanager | Uptime Kuma v1 |
|---|---|---|
| Memory footprint | Hundreds of MB to several GB (TSDB + exporters) | ~100 MB single container |
| Alert setup | PromQL rules + Alertmanager YAML | Point-and-click web UI |
| Public status page | Requires external tooling | Built-in (/status/<slug>) |
| Best use case | Time-series metrics, CPU/RAM/JVM trends | Binary 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.sockgrants effective root control over the host Docker daemon. Even with:ro, a compromised container can still query the Docker API. Always add:roandno-new-privileges:trueat 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:
- Domain Names:
status.example.com - Forward Scheme / IP / Port:
http/uptime-kuma(or host LAN IP) /3001 - Websockets Support: ON (required)
- SSL: Issue a Let’s Encrypt certificate and enable
Force SSLandHTTP/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:
60seconds - 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-apporn8n-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:
- Create a bot through
@BotFatheron Telegram and copy theAPI Token. - Find the target channel or personal
Chat ID. - In Uptime Kuma, go to Settings > Notification > Setup Notification.
- Select Telegram and enter your credentials:
- Bot Token:
${TELEGRAM_BOT_TOKEN}(e.g.,123456789:AAHxxxxxxxxx_xxxxxxxxx) - Chat ID:
${TELEGRAM_CHAT_ID}
- Bot Token:
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:
- Open Status Pages in the top navigation bar and click New Status Page.
- Title:
Namju's Homelab Status - URL Slug:
/status/homelab - Description:
Live homelab infrastructure and service uptime dashboard - Group Services:
Core Infrastructure: NPM, PostgreSQL, RedisApplications: Blog, Uptime Kuma, n8n
- 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.dbdoesn’t grow unbounded on a small SSD. - Pre-launch checklist:
/var/run/docker.sockmounted with:roandno-new-privileges:trueset- Websockets Support enabled in Nginx Proxy Manager
Retriesset to at least2on HTTP monitors to reduce noisy alerts- Certificate expiry notifications enabled for HTTPS endpoints
- Test notification verified in Telegram before relying on it