What Uptime Kuma monitors
Uptime Kuma queries your services at regular intervals: a web page (optionally checking for a keyword on the page), a TCP port, a DNS name, a ping, a Docker container, a certificate's expiry date. As soon as a check fails, it sends an alert through the channel of your choice, and another when everything is back.
It uses little: the VPS Mini (1 vCore, 1 GB) is enough to monitor dozens of services. Choose a KVM VPS to install it with Docker.
The IPv6 point
Our VPS plans only have an IPv6 address. Uptime Kuma therefore reaches services that have IPv6 directly. For the others, and for some notifications (Discord webhooks, for example, are only reachable over IPv4), first set up a NAT64/DNS64 service as in the GitHub over IPv6 guide. HTTP and TCP checks then work without a problem. Pings to an IPv4 address may not work depending on the NAT64 service: prefer an HTTP or TCP check for those targets.
1. Install Docker
Follow our Docker on an IPv6 VPS guide: installation, NAT64 and Docker's IPv6 setting. Check that a container does reach the Internet before continuing.
2. Run Uptime Kuma
Create a folder and a docker-compose.yml file:
mkdir -p /srv/uptime-kuma && cd /srv/uptime-kuma
services:
kuma:
image: louislam/uptime-kuma:2
restart: unless-stopped
volumes:
- data:/app/data
networks: [mon]
caddy:
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy:/data
networks: [mon]
networks:
mon:
enable_ipv6: true
volumes:
data:
caddy:
Uptime Kuma is not published directly to the Internet: Caddy takes care of that, over HTTPS.
3. HTTPS with Caddy
Create an AAAA record, for example status.example.com, pointing to the VPS's IPv6 address, then the Caddyfile file:
status.example.com {
reverse_proxy kuma:3001
}
Caddy obtains and renews a Let's Encrypt certificate by itself. For the status page to also be visible to visitors on IPv4, put the domain behind Cloudflare as explained in the IPv6 VPS guide.
docker compose up -d
Open https://status.example.com straight away and create the administrator account: until it exists, anyone could create it in your place.
4. Add a monitor and an alert
- Click Add New Monitor, choose the HTTP(s) type, enter the site's address and an interval (60 seconds is a good start).
- Under Settings, then Notifications, add a channel: a Discord webhook, a Telegram bot, an ntfy server or an SMTP email account.
- Send a test notification, then enable that channel on your monitors.
- If you like, create a public status page that groups your services, to share with your users.
Updating and backing up
cd /srv/uptime-kuma
docker compose pull
docker compose up -d
All the configuration and history are in the data volume. For a backup, use the settings export function, or copy the volume to another machine with the container stopped.