---
title: "Uptime Kuma 2 on a VPS: monitors, alerts and status pages · CloudSat"
description: "Run Uptime Kuma 2 on its own VPS with Docker Compose: pick monitors that catch real outages, route alerts to people who act, publish a status page."
url: https://cloudsat.io/learn/uptime-kuma-2-setup-and-alerting
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[DevOps](https://cloudsat.io/learn/topic/devops-and-automation)

# Uptime Kuma 2 on a VPS: monitors, alerts and status pages

Run Uptime Kuma 2 on its own VPS with Docker Compose: pick monitors that catch real outages, route alerts to people who act, publish a status page.

CloudSat team November 18, 2026 6 min read

Uptime Kuma is a self-hosted monitor that checks your sites and services from the outside, the way a visitor would, and tells you when they stop answering. It is MIT-licensed, runs as a single container, and sends alerts through more than 90 notification services. Version 2.0 became the stable release in October 2025, adding MariaDB as a database option alongside SQLite, slim and rootless images, and a refreshed interface.

Installing it takes five minutes. Making it useful takes a little more thought: where it runs, what it checks and who gets woken up. This guide covers all three.

## Put the monitor somewhere else

A monitor that shares a failure with the thing it watches goes quiet at the worst moment. If Uptime Kuma runs on your web server, a crashed host takes the alerts down with it. If it runs in the same data center, a network problem there looks like silence.

Run it on its own small server, in a different region from production. A single Node.js process with an SQLite database needs little, so the smallest plans are enough to start; watch memory and disk as you add monitors with short intervals. On CloudSat, Uptime Kuma is also a [one-click app](https://cloudsat.io/apps/deploy-uptime-kuma), and a server in Frankfurt (FRA1) watching production in Amsterdam (AMS1) is the kind of split to aim for.

Then decide who watches the watcher. The simplest answer is a second instance in a third region, with each instance monitoring the other's dashboard URL. Two tiny servers cost little compared with an outage nobody noticed.

## Decide what to check

Each monitor type catches a different failure. A typical web product needs several of them:

| Monitor type | Catches | Use it for |
| --- | --- | --- |
| HTTP(s) | Site down, errors, slow responses | Every public URL that matters |
| HTTP(s) Keyword or JSON Query | A 200 response that serves an error page or bad data | Login pages, health endpoints, APIs |
| TCP port | A service that stopped listening | Mail servers, game servers, SSH |
| DNS record | A record that changed or disappeared | Your apex domain and mail records |
| Ping | A host that dropped off the network | Hosts that answer ICMP |
| Push | A job that did not run | Cron jobs, backups, anything behind NAT |
| Docker container | A container that exited | Containers on the same host as Kuma |

Three habits make monitors trustworthy:

- **Check behavior, not just status codes.** A keyword monitor that looks for text only a working page contains catches broken deployments that still return 200.
- **Use push monitors for scheduled work.** Kuma gives each push monitor a URL. Your backup script calls it on success, and a missed call raises an alert. A silent backup failure is the outage you discover months later.
- **Set retries.** Version 2 changed the default for new monitors from one retry to zero, so a single dropped packet pages someone. One or two retries with a short retry interval filter out blips without hiding real outages.

HTTP monitors can also warn before a TLS certificate expires, which is worth enabling on every HTTPS check.

## Install with Docker Compose

Create a directory such as `/opt/uptime-kuma` with this `compose.yaml`:

```yaml
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

```

```bash
cd /opt/uptime-kuma
docker compose up -d
docker compose logs -f uptime-kuma
```

Keep `./data` on a local disk. The project states that network file systems such as NFS are not supported for the data directory, and SQLite on a network share is a reliable way to corrupt it.

The port is bound to `127.0.0.1`, so the dashboard is not on the internet yet. Put a reverse proxy with HTTPS in front. Kuma's interface relies on WebSockets, which Caddy proxies without extra settings:

```text
kuma.example.com {
    reverse_proxy 127.0.0.1:3001
}
```

With nginx, add `proxy_http_version 1.1`, plus `Upgrade` and `Connection "upgrade"` headers to the location block, or the dashboard will load and then never update. Open the site, create the admin account straight away, and turn on two-factor authentication in the security settings.

## Route alerts to people who act

An alert nobody reads is noise. Before adding a dozen notification channels, decide what each one is for.

1. **Create notifications once and reuse them.** In the notification settings, an option enables a channel by default for new monitors, and another applies it to all existing ones.
2. **Split by urgency.** Customer-facing checks go to something that buzzes a phone, such as Pushover, ntfy or Telegram. Internal tools and certificate warnings go to a team chat channel that people read during the day.
3. **Repeat for long outages.** A setting on each monitor resends the notification while the monitor stays down, so an alert that arrived at 3 a.m. is not the only one.
4. **Silence planned work.** Maintenance windows pause alerts for chosen monitors during an upgrade, and status pages show the maintenance instead of an outage.
5. **Test every channel.** Each notification has a test button; use it after any change.

## Publish a status page

Uptime Kuma can host several status pages, each showing a chosen set of monitors. A public page for customers usually lists a few user-facing services under friendly names, not every internal check. Status pages can have their own domain, such as `status.example.com`, served by the same reverse proxy, and they can display incident notes you post during an outage.

Because the monitor runs away from production, the status page stays up when production does not, which is the point of having one.

## Back up and upgrade

Version 2 removed the old JSON export, so the data directory is the backup. Stop the container briefly so SQLite is consistent:

```bash
cd /opt/uptime-kuma
docker compose stop uptime-kuma
tar -czf /root/kuma-$(date +%F).tar.gz data
docker compose start uptime-kuma
```

Copy the archive off the server, or take a snapshot of the whole server before risky changes.

Routine updates are a pull and a restart: `docker compose pull && docker compose up -d`. Upgrading from 1.x needs more care. Back up `data` first, switch the image to `louislam/uptime-kuma:2`, and let the first start finish without interruption: it converts the heartbeat history to a new format, which the project reports takes minutes for a modest install and can take hours on a slow machine with a lot of history. Avoid the rootless image for that upgrade, as the project advises.

For large installations, MariaDB is the database to choose at first setup. There is no built-in path from SQLite to MariaDB later, and the maintainers advise against common conversion scripts because they skip indexes.

## FAQ

### Uptime Kuma or Prometheus?

They answer different questions. Uptime Kuma checks from outside whether a service works for users. Prometheus collects metrics from inside, such as CPU, queue depth or error rates, and shows why something degrades. Most teams end up with both; the [Prometheus and Grafana guide](https://cloudsat.io/learn/prometheus-and-grafana-explained) explains where that side fits.

### Can it monitor services that are not public?

Yes, in two ways. Push monitors work from anywhere that can reach Kuma, so an internal job can report in. Or run Kuma on a machine with access to the private network, for example over WireGuard, and check internal addresses directly.

### Should I mount the Docker socket for container monitors?

Only on a host where Kuma already runs next to the containers it checks, and preferably through a read-only socket proxy. Socket access is root access, and a monitor exposed through a web page is a poor place to hand that out.

### How short should check intervals be?

Sixty seconds suits most services. Shorter intervals find outages a little sooner but grow the database faster and multiply alerts during flaps. Keep 20-second checks for the few services where every second of downtime costs money.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in DevOps](https://cloudsat.io/learn/topic/devops-and-automation)

- [Prometheus vs Grafana: roles, sizing and when to self-host](https://cloudsat.io/learn/prometheus-and-grafana-explained): DevOps Prometheus vs Grafana: roles, sizing and when to self-host 7 min read
- [Self-hosted Windows server monitoring: Zabbix or Prometheus](https://cloudsat.io/learn/monitor-windows-servers-self-hosted): DevOps Self-hosted Windows server monitoring: Zabbix or Prometheus 7 min read
- [A self-hosted developer stack on one VPS: layout and limits](https://cloudsat.io/learn/developer-tool-stack-on-one-vps): Self-hosting A self-hosted developer stack on one VPS: layout and limits 6 min read
- [Prometheus and Grafana with Docker Compose on one server](https://cloudsat.io/learn/prometheus-grafana-stack-with-docker-compose): DevOps Prometheus and Grafana with Docker Compose on one server 8 min read
