In short. Uptime Kuma is a web-based tool for self-hosted uptime monitoring. Run the Uptime Kuma Docker image on a small VPS, put Nginx or Caddy in front for HTTPS, and it checks your sites and services every 60 seconds by default, alerts you on Telegram or Discord, and publishes a public status page. A Cloud VPS 10 has room to spare.
A monitor is only useful if it survives the outage it reports. This guide puts Uptime Kuma on its own server and covers Docker, HTTPS, alerts, a status page and backups. You need a VPS with SSH access and a domain name.
What is Uptime Kuma?
Uptime Kuma is an open-source monitoring tool that checks whether your websites and services respond and alerts you when they stop. It runs as one Node.js application with a web dashboard and an official Docker image. It monitors HTTP(s) endpoints, keywords, JSON query results, TCP ports, ping, DNS records, push heartbeats and Docker containers, and it sends alerts through 90+ notification services.
For self-hosted uptime monitoring, that is often enough. Uptime Kuma tells you whether something is up. Prometheus and Grafana tell you why it is slow, by collecting metrics from inside your servers. Add the full Prometheus and Grafana stack when you need CPU graphs or custom queries.
Why host Uptime Kuma on a separate VPS?
Host Uptime Kuma on a separate VPS, because a monitor that runs on the server it watches goes down together with it. The point of self-hosted uptime monitoring is to report failures, and a dead server cannot alert you about itself.
A practical example: your app runs on a VPS in a European data center, and the monitor runs on a small VPS in the US. A network or power fault at the first site leaves the monitor running, so the alert still reaches you. It also suits the cheapest Core VPS tier, and it never competes with your apps for RAM.
Uptime Kuma requirements and sizing
Uptime Kuma runs on major Linux distributions, and you can install it with plain Docker or Docker Compose. To follow this guide, you need an Ubuntu or Debian VPS with Docker Engine and the Compose plugin installed, a domain name whose A record points at the server, and ports 80 and 443 open for HTTPS. For an Uptime Kuma Docker install, the project lists no minimum RAM or CPU, so the table is an editorial starting point, not an upstream guarantee.
| Monitors | Starting point (editorial estimate) | Fitting Contabo plan |
|---|---|---|
| Up to 25 | 1 vCPU, 1 GB RAM | Core VPS |
| 26 to 100 | 1 vCPU, 2 GB RAM | Core VPS |
| 101 to 300 | 2 vCPUs, 4 GB RAM | Core VPS |
| 301 to 1,000 | 4 vCPUs, 8 GB RAM | Core VPS |
| Over 1,000 | Measure first, consider MariaDB | Performance VPS or larger |
Our Core VPS has 4 vCPUs, 8 GB of RAM and 100 GB of SSD storage.
How to install Uptime Kuma with Docker
An Uptime Kuma install is one container with one data path. The image tag 2 follows the current major release.
For a quick test, run this one-liner with a named volume:
docker run -d --restart=unless-stopped -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2
For a server you plan to keep, remove the test container with docker rm -f uptime-kuma and use this Uptime Kuma Docker Compose file instead. It binds port 3001 to localhost, because Docker publishes ports through firewall rules that bypass ufw. The reverse proxy in the next section handles public traffic.
mkdir -p ~/uptime-kuma && cd ~/uptime-kuma
nano docker-compose.yml
services:
uptime-kuma:
image: louislam/uptime-kuma:2
container_name: uptime-kuma
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- ./data:/app/data
docker compose up -d
docker compose ps
curl -I http://127.0.0.1:3001
Keep the data directory on local disk, because the project warns that NFS can corrupt the SQLite database.
Uptime Kuma reverse proxy and HTTPS
An Uptime Kuma reverse proxy needs a TLS certificate and WebSocket forwarding, because the dashboard talks to the server over a WebSocket connection. Many readers search for this setup directly, so this section stands alone. Point an A record for your domain at your VPS. This guide uses status.example.com as the example, so replace it with your own. Then pick Nginx or Caddy.
For Nginx with Let’s Encrypt, install the packages and create a site file:
sudo apt install -y nginx certbot python3-certbot-nginx
sudo nano /etc/nginx/sites-available/status.example.com
server {
listen 80;
server_name status.example.com;
location / {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Enable the site and let Certbot add the certificate. Certbot also edits your site file to add the HTTPS listener and an HTTP-to-HTTPS redirect:
sudo ln -s /etc/nginx/sites-available/status.example.com /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d status.example.com
The Upgrade and Connection lines carry the WebSocket traffic. If the login page loads but the dashboard keeps reconnecting, the proxy is dropping them.
Caddy requests and renews certificates on its own and proxies WebSockets without extra headers, so the whole config is three lines:
status.example.com {
reverse_proxy 127.0.0.1:3001
}
Save it as /etc/caddy/Caddyfile, then run sudo systemctl reload caddy.
Keep port 3001 closed to the outside. Once the app is reachable only through the proxy, set Trust Proxy to Yes under Settings, then Reverse Proxy, so logs show real client IPs. Leave it off if port 3001 is reachable directly, because clients could spoof the headers.
Add your first Uptime Kuma monitors
Uptime Kuma handles self-hosted uptime monitoring for websites, ports, hosts, DNS records and containers through the same form.
- Open your own domain in a browser, for example
https://status.example.com, and create the admin username and password on the setup screen. - Select Add New Monitor, choose HTTP(s), enter your site URL and save. Use the keyword type to catch pages that return status 200 with an error message.
- Add a TCP Port monitor for services without a web page, such as SSH on port 22.
- Add a Ping monitor for the host and a DNS monitor that checks a record resolves to the value you expect.
- Add a Docker Container monitor for containers on a Docker host you registered under Settings.
- Set the interval and retries. We suggest two or three retries, because new monitors in version 2 default to zero.
Push monitors work in reverse. Uptime Kuma gives you a URL, your cron job calls it on schedule, and the monitor goes down when the calls stop.
Uptime Kuma notifications: Telegram, Discord and email
Uptime Kuma Telegram alerts need two values: a bot token and a chat ID.
- In Telegram, open BotFather, send
/newbot, choose a name and a username ending inbot, and copy the token. - Send any message to the new bot, or add the bot to the group that should receive alerts.
- Look up the chat ID through the Bot API with your token, and read
idinsidechat. Group chat IDs are negative numbers. - In Uptime Kuma, open Settings, then Notifications, select Setup Notification, choose Telegram, paste the token and chat ID, and press Test.
- Enable Default enabled to attach the notification to every new monitor.
curl https://api.telegram.org/bot<BOT_TOKEN>/getUpdates
Treat the token like a password, and revoke it in BotFather if it leaks. Discord, Slack and email use the same Setup Notification dialog:
- Discord and Slack: create a webhook for the channel and paste its URL.
- Email: enter your SMTP host, port, username and password.
Create a public Uptime Kuma status page
An Uptime Kuma status page is a public page that shows the live state of the monitors you choose. Open Status Pages, name the page, set its slug, add monitors in groups and save. It then lives at /status/your-slug on your domain.
For a custom domain, add it in the status page settings, create the DNS record, and extend your proxy config to cover it.
To announce a problem, open the page in edit mode, choose Create Incident, and write a short Markdown message saying what broke and when you will update. Check the page in a private window first, because monitor names are public.
Back up and update Uptime Kuma
Back up the whole data directory, then update by pulling the new image and recreating the container. An Uptime Kuma Docker setup keeps everything in data, so one archive captures it all. The commands below assume the Compose setup from the install section.
- Stop the container, archive
dataandcompose.yaml, and start it again. Version 2 removed JSON backup and restore, so the data directory is the supported method. - Copy the archive off the server, for example with rclone to an S3-compatible bucket such as Contabo Object Storage, and test a restore.
- Update with
docker compose pull, thendocker compose up -d --force-recreate. - If you are coming from version 1, tag
2is a major update with breaking changes, so back updatatwice first and avoid the rootless images. - Let the first start finish. It converts the heartbeat table, which took about 7 minutes in a project test with 20 monitors and 90 days of history. An interrupted run means restoring your backup.
cd ~/uptime-kuma
docker compose stop
tar -czf ~/uptime-kuma-backup-$(date +%F).tar.gz data compose.yaml
docker compose start
tar -czf ~/uptime-kuma-backup-$(date +%F).tar.gz data compose.yaml
docker compose start
Uptime Kuma alternatives
The main Uptime Kuma alternatives are Gatus, Healthchecks, Prometheus with Blackbox Exporter, and hosted services such as UptimeRobot or Better Stack. For self-hosted uptime monitoring with a dashboard and no config files, Uptime Kuma is still the quickest to start.
- Gatus: choose it if you want monitors defined in a YAML file that you keep in Git.
- Healthchecks: choose it when you mostly watch cron jobs through ping URLs.
- Prometheus with Blackbox Exporter: choose it if you already run Prometheus and Grafana.
- Hosted services such as UptimeRobot or Better Stack: choose them if you prefer not to run a server.
Why run Uptime Kuma on a Contabo VPS
The cheapest Core VPS is enough for Uptime Kuma. It starts at $6.28 per month, with 8 GB of RAM and 100 GB of SSD storage, far more than one Uptime Kuma Docker container uses.
If the same server also runs other tools, such as Grafana, or you watch well over 1,000 monitors, Performance VPS is a great fit. This tier uses newer AMD EPYC CPUs, NVMe storage and five snapshots, so it suits heavier setups better.
Pick a data center that differs from the one hosting the services you watch. Contabo offers locations in the EU, the UK, the US and Asia-Pacific, so the monitor can sit on another continent. Lock the server down with the Contabo Firewall in the Customer Control Panel and allow only ports 22, 80 and 443.
One monitor server is still one machine, so point a hosted checker at your status page URL as a second opinion.
FAQ: Self-hosting Uptime Kuma
How do I install Uptime Kuma with Docker Compose?
Create a compose.yaml that uses the louislam/uptime-kuma:2 image, maps 127.0.0.1:3001:3001 and mounts ./data at /app/data, then run docker compose up -d in that folder. Uptime Kuma Docker Compose setups keep the database in the data directory, so that folder is what you back up. Put Nginx or Caddy in front for HTTPS before you expose the dashboard.
How much RAM does Uptime Kuma need?
The Uptime Kuma project publishes no minimum RAM figure. For up to 100 monitors, 1 to 2 GB of RAM is a sensible starting point, and a Cloud VPS 10 with 8 GB leaves ample headroom. Intervals, monitor count and retention all affect memory, so run docker stats after a week and resize from the measured numbers.
How do I send Uptime Kuma alerts to Telegram?
Create a bot with BotFather, copy its token, send the bot a message, and read your chat ID from the Bot API getUpdates call. In Uptime Kuma, open Settings, then Notifications, choose Telegram, paste the token and chat ID, and press Test. Uptime Kuma Telegram alerts attach to every new monitor if you enable Default enabled.
Can I run Uptime Kuma behind Nginx?
Yes. An Uptime Kuma reverse proxy on Nginx forwards traffic to 127.0.0.1:3001 and passes the Upgrade and Connection headers, because the dashboard uses WebSockets. Without them the page loads but the live view fails. Add a Let’s Encrypt certificate with Certbot, and enable Trust Proxy in Uptime Kuma only if Nginx is the sole way in.
What are the best Uptime Kuma alternatives?
The best choice depends on the job. Gatus suits monitors defined as code in YAML, Healthchecks suits cron job heartbeats, Prometheus with Blackbox Exporter suits teams already running Grafana, and hosted services such as UptimeRobot or Better Stack remove server maintenance. Uptime Kuma is the quickest self-hosted option that includes a dashboard and a status page.
