
You don’t need another monthly subscription just to know whether a site is up. If you want dependable checks, quick alerts, and a simple status page, you can run Uptime Kuma on a VPS and keep the setup under your control. That means no per-monitor pricing, no lock-in, and no questions about where your monitoring data goes.
This guide is for operators who run websites, APIs, and servers on infrastructure they manage. The goal is a setup you can live with: Docker Compose, HTTPS behind a reverse proxy, sensible sizing, restorable backups, and an update routine that stays boring.
Why you’d run Uptime Kuma on a VPS (and who it fits)
Uptime Kuma is a self-hosted monitoring dashboard for practical checks. It supports HTTP(S) endpoints, TCP ports, ping, DNS, keyword match, certificate expiry, and a few service-specific options.
It’s a good fit if you run:
- One to a few dozen websites (WordPress, WooCommerce, marketing sites)
- APIs and app backends (Node.js, Python, PHP)
- Infrastructure endpoints (SSH, SMTP, database ports, reverse proxies)
It’s not a full observability stack, and it doesn’t try to be. It won’t replace metrics, logs, and traces.
What you do get is the answer you usually need first: “is it up?” If it isn’t, you get an alert.
If hosted uptime monitoring already works for you, keep it. Self-hosting helps most when you want predictable costs, custom checks (like a keyword match on a private health page), or monitoring that isn’t tied to a SaaS account that could be locked, limited, or down itself.
Open-source spotlight: what Uptime Kuma replaces
Most people arrive at Uptime Kuma from hosted uptime monitors and status-page products. The trade-offs are familiar:
- Hosted tools: fast setup, global probe networks, and paid tiers for monitor counts, notification channels, and retention.
- Uptime Kuma: no per-monitor pricing, you control data and retention, and you own the security and maintenance.
In daily operations, Uptime Kuma replaces the “I just need checks and alerts” part of the stack. If you need many probe geographies, you can add self-hosted probe nodes (advanced). Or keep a small hosted plan as an external sanity check.
License note: Uptime Kuma is open-source (AGPL-3.0). That mostly matters if you plan to modify it and offer it as a network service. For typical self-hosting, it’s a straightforward pick.
Planning: VPS sizing, network ports, and DNS
Uptime Kuma runs fine on small servers. Still, don’t under-provision it if you plan lots of monitors or short intervals.
- Small setup (up to ~50 monitors at 60s intervals): 1 vCPU, 1 GB RAM, 10–20 GB SSD.
- Medium (100–300 monitors, mixed checks): 2 vCPU, 2–4 GB RAM, 30+ GB SSD.
- Busy status page + lots of checks: 4 vCPU, 4–8 GB RAM.
If you can, keep monitoring off the same host you’re monitoring. Monitoring your web server from your web server is better than nothing. It won’t catch a full-host failure, though.
A small, separate VPS is usually enough.
For hosting, start with a dependable baseline like a HostMyCode VPS. It’s easier to match CPU/RAM to monitor count, and you keep storage on SSD/NVMe.
For DNS, plan a subdomain such as status.example.com or uptime.example.com pointing to your VPS IP. You’ll also want these ports open:
- 80/tcp and 443/tcp (for reverse proxy + Let’s Encrypt)
- No need to expose Uptime Kuma’s container port to the internet directly.
Deploy: Docker Compose setup on Ubuntu or Debian
This isn’t a “paste one command and hope” guide. You should be able to run the commands as written.
The example assumes Ubuntu 24.04 LTS or Debian 12/13 on a VPS.
Install Docker Engine and the Compose plugin using your distro’s recommended method. Then create a working directory:
sudo mkdir -p /opt/uptime-kuma
cd /opt/uptime-kuma
Create compose.yml with a persistent volume:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: unless-stopped
volumes:
- uptime-kuma-data:/app/data
networks:
- internal
networks:
internal:
name: uptime-kuma-internal
volumes:
uptime-kuma-data:
name: uptime-kuma-data
This uses the project’s stable major tag (:1) instead of a floating :latest. For production-ish services, that’s the calmer default.
Bring it up:
docker compose up -d
docker compose ps
Uptime Kuma is running now, but it isn’t published. Next, put it behind a reverse proxy so HTTPS and headers are handled in one place.
Reverse proxy + HTTPS: Caddy (clean) or Nginx (familiar)
You’ve got two common approaches:
- Caddy: small config, automatic Let’s Encrypt, easy to keep tidy.
- Nginx: widely deployed, very flexible, and often already installed.
If you haven’t touched reverse-proxy config in a while, Caddy is often the “less to mess up” option. The pattern is the same as other self-hosted apps. See Run Open WebUI on a VPS with Caddy and HTTPS for the same shape of deployment.
Option A: Caddy in the same Compose project
Add a Caddy service, publish 80/443, and keep Kuma on the internal network. Update compose.yml:
services:
caddy:
image: caddy:2
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks:
- internal
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: unless-stopped
volumes:
- uptime-kuma-data:/app/data
networks:
- internal
networks:
internal:
name: uptime-kuma-internal
volumes:
uptime-kuma-data:
caddy-data:
caddy-config:
Create /opt/uptime-kuma/Caddyfile:
uptime.example.com {
encode zstd gzip
reverse_proxy uptime-kuma:3001
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "strict-origin-when-cross-origin"
}
}
Apply changes:
docker compose up -d
Before Caddy requests certificates, confirm your DNS A/AAAA record for uptime.example.com already points at the VPS.
Option B: Nginx on the host
If you already run several apps behind Nginx, keep the pattern consistent. Expose Kuma only to localhost, then proxy to it.
One clean approach is publishing to 127.0.0.1 only:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- uptime-kuma-data:/app/data
volumes:
uptime-kuma-data:
Then create an Nginx server block, for example /etc/nginx/sites-available/uptime.example.com, and use Certbot (or your preferred ACME client) for HTTPS.
If you’re already tuning Nginx for reliability, our WordPress 504 troubleshooting on Nginx is a solid reference for upstream timeout behavior.
Operational basics: notifications, check design, and false alarms
Alerts only help when you trust them. Most monitoring noise comes from checks that don’t reflect real user impact.
- Use a real health URL (e.g.,
/healthz) that exercises dependencies users rely on. - Set a sane interval: 60 seconds is a good default. Dropping to 10 seconds multiplies load and annoyance.
- Require multiple failures before alerting. One dropped packet shouldn’t page you.
- Monitor TLS expiry separately. Certificate problems often look like downtime from the outside.
Pick notification channels that you’ll actually see. Email is fine if delivery is reliable.
If you run your own mail stack or relay, make sure DKIM is correct so “server is down” doesn’t end up in spam. Our guide to setting up DKIM signing with OpenDKIM covers the setup.
Backups: what to save (and how to restore confidently)
Uptime Kuma’s state lives in /app/data inside the container. In Docker Compose, that data is stored in your Docker volume.
Back up that volume. Rebuilding from scratch is possible, but it wastes time and usually happens during an incident.
A simple approach is a filesystem-level archive of the volume data. First, locate the volume:
docker volume inspect uptime-kuma-data
On most Docker hosts, it’s under /var/lib/docker/volumes/uptime-kuma-data/_data. Create a nightly backup via cron to a separate disk or object storage mount:
sudo install -d -m 700 /var/backups/uptime-kuma
sudo tar -C /var/lib/docker/volumes/uptime-kuma-data/_data \
-czf /var/backups/uptime-kuma/uptime-kuma-data-$(date +%F).tar.gz .
If you want consistent backups during writes, stop the container briefly (usually seconds) before running the tar:
docker stop uptime-kuma
# run tar backup
docker start uptime-kuma
Make restores testable. The cleanest test is on a second VPS.
Bring up the same Compose stack, stop Kuma, wipe the volume data, extract the archive into the volume path, then start Kuma again.
Keep backups offsite. If the VPS disk fails, local backups disappear with it. Treat Kuma like any other production dependency and back it up the same way.
Updating safely: routine beats heroics
Self-hosting means you own updates. The goal is to make updates dull and repeatable.
- Pin to a stable major tag (like
:1) unless you have a reason to track a specific digest. - Back up before updating, especially before larger version jumps.
- Read the project release notes when breaking changes are mentioned.
On the server, the workflow stays simple:
cd /opt/uptime-kuma
docker compose pull
docker compose up -d
docker image prune -f
If you want automatic updates, add constraints. Watchtower works best when you scope it to specific containers and keep backups in place.
See Docker Compose auto-updates with Watchtower for a cautious pattern.
Security and reliability checklist (quick, practical)
Your monitor becomes part of your response chain. Treat it like production, because you’ll depend on it during outages.
- Protect the host: keep OS updates current; allow only 22/80/443 as needed; use SSH keys.
- Don’t expose admin ports: keep Kuma behind the proxy; avoid direct internet access to
3001. - Use HTTPS only: HSTS helps prevent downgrade issues on public Wi-Fi.
- Rate-limit login attempts: if you run Nginx, consider basic rate limiting; for broader protection use CrowdSec. (We’ve covered this in Install CrowdSec on Ubuntu VPS.)
- Separate monitoring from production: ideally, Kuma runs on its own VPS so it can still alert when your app host is down.
If you manage multiple client sites, separation helps. A dedicated monitoring VPS plus a clear backup routine beats “it’s installed wherever there was room” every time.
Where Uptime Kuma fits next to “real monitoring”
You don’t need one tool to do everything. For many site owners, a sensible split looks like this:
- Uptime Kuma: endpoint checks + notifications.
- Dashboards: Grafana for server/app metrics (CPU, RAM, disk, DB, Nginx/Apache).
If you already collect metrics, our Grafana on a VPS post pairs well with Kuma. Grafana helps explain “why it’s slow,” while Kuma tells you “it’s down.”
Summary: a calm, low-cost way to monitor what you run
If you want simple uptime checks, fast alerts, and an optional status page, Uptime Kuma is a solid self-hosted choice in 2026. Put it on a small VPS, keep it behind a reverse proxy with HTTPS, back up the data volume, and update it on a schedule.
Once it’s in place, you’re far less likely to hear about outages from customers first. That’s usually worth the hour it takes to set up.
If you’d rather not handle the underlying server chores, start with managed VPS hosting so patching, core services, and stability don’t compete with your real work. If you prefer to self-manage, a right-sized HostMyCode VPS is a clean home for monitoring, separate from your production stack.
If you’re adding monitoring because downtime now has a real cost, keep the monitoring host boring and dependable. A small HostMyCode VPS is a good fit for Uptime Kuma, and you can scale it later without changing how you operate.
If you want help with hardening, routine updates, and backups, managed VPS hosting lets you focus on checks and incident response instead of server upkeep.
FAQ
Should I run Uptime Kuma on the same VPS as my website?
You can, but it won’t detect full-host outages. For meaningful coverage, run Kuma on a separate VPS so it can still alert when your primary server is unreachable.
Does Uptime Kuma replace Pingdom or Statuspage?
It can replace the uptime-check side (and a basic public status page). If you need a large global probe network or enterprise incident workflows, a hosted tool may still be the better fit.
What’s the most important thing to back up?
The Docker volume that maps to /app/data. That’s where your monitors, notification settings, and status page configuration live.
How do I avoid false downtime alerts?
Use a health endpoint that reflects real user impact, require multiple failed checks before alerting, and avoid overly aggressive intervals like 5–10 seconds unless you truly need them.