
Most uptime tools fail in a familiar way. They page you for everything. Eventually, you stop believing them.
If you deploy Uptime Kuma on your own VPS, you can keep the setup tight. Monitor only what matters, and control where your incident history lives. You also avoid per-monitor pricing and keep sensitive timelines out of third-party systems.
Uptime Kuma is a self-hosted monitoring dashboard for websites, APIs, and TCP services. It fits WordPress sites, SaaS apps, and small VPS fleets that need a clear status view and dependable alerts.
It is not a full observability platform. That narrow scope is why it stays fast and easy to maintain.
What you get when you deploy Uptime Kuma
Uptime Kuma (open source, MIT license) keeps its scope simple: uptime checks and notifications. You add endpoints, pick intervals, and get alerted when something breaks.
It supports HTTP(S), ping, TCP port checks, keyword matching, and basic certificate expiry monitoring. The certificate check is especially useful. It can catch a failed renewal before users see a browser warning.
Who it’s for:
- Site owners who want to know checkout is broken before customers complain.
- App operators who need quick API coverage (health endpoints, login routes, webhook receivers).
- Server admins who want “is it up?” checks for SSH, databases, and services exposed through a reverse proxy.
Who it’s not for: teams that need multi-region synthetic monitoring with SLAs, correlation, and deep metrics/tracing pipelines.
You can run those tools alongside Kuma, but Kuma won’t pretend it does that job.
Uptime Kuma vs hosted monitoring services
Hosted services like UptimeRobot, Pingdom, Better Stack, or StatusCake are easy to start with. The trade-offs usually show up later:
- Per-monitor pricing: cost grows as you add environments, ports, and extra checks.
- Data visibility: incident history and response patterns sit in someone else’s system.
- Network reality: public checkers can’t see private services unless you bolt on extra agents or tunnels.
Self-hosting Uptime Kuma flips that. You can monitor internal endpoints, staging environments, and non-HTTP services without negotiating plan limits.
The catch is obvious: you also own the uptime of the monitoring box. For many operators, a $6–$12 VPS plus one external “is Kuma alive?” check is plenty.
Where to run it: VPS vs dedicated server
You can run Uptime Kuma almost anywhere. A small VPS is usually the best choice because it stays separate from the services you’re watching.
That separation matters. If your main server dies, your monitoring dashboard shouldn’t vanish with it.
- Best default: a small VPS in a different region/provider than your primary workload.
- Dedicated server: useful if you already run a dedicated box for multiple services and want monitoring close to internal networks—still consider an external probe.
If you want a clean, stable base, start with a HostMyCode VPS. If you’d rather not handle patching, Docker, and basic hardening yourself, managed VPS hosting is the better fit.
Resource requirements that won’t surprise you later
Uptime Kuma is lightweight. Usage depends on the number of checks, how often they run, and how long you keep history.
- Small setup (up to ~50 monitors, 30–60s intervals): 1 vCPU, 1 GB RAM, 10–20 GB disk
- Medium setup (100–300 monitors): 2 vCPU, 2 GB RAM, 20–40 GB disk
- Heavy usage: consider 2–4 vCPU and keep an eye on disk writes and backup size
Disk sizing mostly comes down to Docker volumes and backups. If you’ve been burned by a growing volume before, keep a quick “disk full” runbook nearby.
This HostMyCode guide is a good reference: Disk full on VPS: find large files and free space safely.
Deploy Uptime Kuma with Docker Compose (clean layout)
You’ll end up with a setup you can run day to day. Uptime Kuma runs in a container. Data lives in a predictable path. A reverse proxy handles HTTPS and headers.
Assumptions:
- Ubuntu or Debian VPS with SSH access
- A domain or subdomain like
status.example.compointed to the VPS - Docker + Docker Compose plugin installed
If you’re new to reverse proxies with Compose, HostMyCode has a strong Traefik primer: Traefik with Docker Compose for HTTPS on a VPS.
Below is an Nginx option because it’s straightforward and easy to troubleshoot.
Suggested directory structure
/opt/uptime-kuma/
docker-compose.yml
.env
data/
Docker Compose example
This Compose file runs Uptime Kuma and stores persistent data in a bind mount (./data). That also keeps backups simple.
services:
uptime-kuma:
image: louislam/uptime-kuma:latest
container_name: uptime-kuma
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- ./data:/app/data
networks:
default:
name: uptime-kuma
Binding to 127.0.0.1 keeps Kuma off the public internet. Nginx becomes the only public entry point.
Reverse proxy with HTTPS (Nginx + Let’s Encrypt)
On a single-service VPS, Nginx with Certbot remains a clean choice in 2026. The config lives in plain files, you can validate changes with nginx -t, and the logs are familiar.
Install Nginx and Certbot on Ubuntu/Debian:
sudo apt update
sudo apt install -y nginx certbot python3-certbot-nginx
Nginx site config
Create /etc/nginx/sites-available/status.example.com:
server {
listen 80;
listen [::]:80;
server_name status.example.com;
location / {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
client_max_body_size 10m;
}
Enable it:
sudo ln -s /etc/nginx/sites-available/status.example.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
Issue the certificate
sudo certbot --nginx -d status.example.com
Certbot will add the TLS server block and redirect HTTP to HTTPS. Run a renewal test once:
sudo certbot renew --dry-run
If you prefer a proxy that includes automatic HTTPS and simple routing, Caddy is a solid alternative. HostMyCode covers adjacent reverse-proxy patterns you can reuse across your stack, for example: Enable HTTP/3 on Nginx with QUIC on Ubuntu VPS.
Practical monitor setup (what to check first)
Don’t start by monitoring everything you can reach. Start with the checks that quickly tell you whether users are stuck.
- Homepage HTTP(S): check status code, and optionally a keyword like your brand name.
- Login route: a
/wp-login.phppage or app login endpoint can expose WAF blocks and PHP failures. - Checkout/critical API: a lightweight endpoint that reflects real user experience.
- TCP ports: SSH, Postgres, MySQL, Redis—only if they are supposed to be reachable from the monitor location.
- Certificate expiry: get alerted before renewal breaks and your users see warnings.
A simple pattern that pays off: monitor the reverse proxy and one backend endpoint. If the proxy is up but the backend fails, you can narrow the search immediately.
Notifications: keep them boring and effective
Uptime Kuma supports multiple notification channels (for example, email/SMTP and common chat/webhook integrations). The goal isn’t fancy alerts.
It’s alerts you’ll still respect three months from now.
- One “wake me up” channel for real downtime (SMS gateway, paging integration, or a high-priority chat room).
- One “work queue” channel for slower issues (certificate expiring, intermittent failures).
- Use maintenance windows during planned deploys so you don’t train yourself to ignore alerts.
If you send alerts over SMTP, make sure your DNS is correct (SPF/DKIM/DMARC) so notifications land consistently.
If you manage multiple domains for clients, centralizing DNS reduces “mystery failures.” HostMyCode’s domains and DNS service is a straightforward place to keep records consistent.
Backups: what to save (and how to restore)
Uptime Kuma stores configuration and historical data in its data directory. If you used the bind mount above, the backup target is straightforward: /opt/uptime-kuma/data.
A sensible backup plan for this service:
- Daily backup of the data directory
- Offsite copy (object storage, another VPS, or your backup server)
- Monthly restore test to a throwaway VM or a temporary directory
Example backup script (tar + retention)
Create /usr/local/sbin/backup-uptime-kuma.sh:
#!/usr/bin/env bash
set -euo pipefail
SRC="/opt/uptime-kuma/data"
DEST="/var/backups/uptime-kuma"
TS="$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$DEST"
tar -C "$SRC" -czf "$DEST/uptime-kuma-data-$TS.tar.gz" .
# Keep last 14 backups
ls -1t "$DEST"/uptime-kuma-data-*.tar.gz | tail -n +15 | xargs -r rm -f
Make it executable and schedule it:
sudo chmod +x /usr/local/sbin/backup-uptime-kuma.sh
sudo crontab -e
Add:
15 2 * * * /usr/local/sbin/backup-uptime-kuma.sh
Restore drill (10 minutes that saves your weekend)
A restore test doesn’t need to be elaborate. Prove you can bring Kuma back with a copied data directory:
- Stop the container:
docker compose down - Move current data aside:
mv data data.bak - Extract a backup into
data/ - Start:
docker compose up -d
If it boots and your monitors and notifications are intact, your backup is doing its job.
Safe updates without breaking your monitoring
Updating one container is simple. Avoiding surprises comes down to two habits: keep backups and avoid unplanned image changes mid-day.
A clean update flow:
- Run a manual backup (or confirm last night’s backup exists).
- Pull the new image:
docker compose pull - Restart with the new image:
docker compose up -d - Confirm the dashboard loads and a test notification succeeds.
If you want automated updates, add guardrails. Use maintenance windows, notifications, and pinned tags where possible.
HostMyCode has a practical guide you can adapt here: Docker Compose auto-updates with Watchtower on a VPS.
Common pitfalls (and quick diagnostics)
Most problems you’ll hit aren’t “Uptime Kuma bugs.” They usually come from DNS, networking, or reverse-proxy misconfigurations.
Check these first.
- 502/504 from Nginx: confirm the container is running and listening on
127.0.0.1:3001:docker ps. Then check/var/log/nginx/error.log. - Let’s Encrypt failures: verify A/AAAA records point to the VPS IP and port 80 is reachable.
- No notifications: send a test notification inside Uptime Kuma, then validate SMTP credentials or webhook URLs. A lot of “SMTP issues” are really DNS (SPF) or blocked outbound ports.
- Checks fail only from Kuma: you may be probing private endpoints from a public VPS, or a firewall is blocking the VPS IP. Test from the VPS with
curl -I https://example.com.
Where HostMyCode fits (and why it matters)
Uptime Kuma is only useful if it stays online and stays patched. If your monitoring goes down every time your primary server has trouble, you haven’t gained much.
You’ve added one more dependency.
That’s why a separate VPS is usually the cleanest approach. A small HostMyCode VPS gives you predictable resources and isolation.
If you want the OS and baseline maintenance handled, managed VPS hosting keeps the operational load down.
If you’re planning to deploy Uptime Kuma for real alerts (not a weekend experiment), run it on a VPS that’s separate from the apps you’re monitoring. Start with a small HostMyCode VPS, and move to dedicated servers later if your monitoring footprint grows.
If you’re migrating from a shared host or consolidating tools, HostMyCode can also help with migrations so your monitoring and primary services land cleanly.
FAQ
Do I need a second server to monitor Uptime Kuma itself?
Ideally, yes. The simplest approach is to run Kuma on one VPS and add one external check from a hosted service or a second low-cost VPS. That way, you’ll still get notified if the monitoring VPS is down.
Is Docker Compose the best way to run it in production?
For most small teams, yes. It’s easy to reproduce, easy to update, and you can back up the data directory without special tooling. Just keep the container bound to localhost and front it with HTTPS.
Can I put Uptime Kuma behind Cloudflare?
You can. It works well for DDoS buffering and quick DNS changes. Still secure the origin (firewall, allowlists where possible) and make sure you can reach the service during troubleshooting.
What should I back up: the container image or the data directory?
Back up the data directory. Images are replaceable; your monitor configuration, notification settings, and historical data are not.
How many monitors can a small VPS handle?
A 1 vCPU / 1 GB RAM VPS can handle dozens of monitors comfortably with sane intervals. If you push hundreds of checks every few seconds, scale up CPU/RAM and reduce retention noise before blaming the software.