Skip to content
Log In Sign Up info@muvcloud.com

What Uptime Kuma Checks

  • HTTP and HTTPS: the status code of a page, and optionally a keyword that must appear in it.
  • TCP port: whether a service such as a database or mail server accepts connections.
  • Ping and DNS: whether a host answers and whether a record resolves to what you expect.
  • Certificates: a warning before a TLS certificate expires.
  • Containers: whether a Docker container is running, when it can read the Docker socket.

Run It on Another Server

A monitor that runs on the server it watches goes down with that server and cannot tell you. Put Uptime Kuma on a separate small server, ideally in another location, and let it watch the others from outside.

Start It with Docker Compose

Install Docker first (see how to install Docker on Ubuntu). Then create a folder with a compose.yaml:

services:
  uptime-kuma:
    image: louislam/uptime-kuma:2
    restart: unless-stopped
    ports:
      - "127.0.0.1:3001:3001"
    volumes:
      - kuma-data:/app/data

volumes:
  kuma-data:
docker compose up -d
docker compose logs -f

The interface listens on port 3001, which stays closed to the internet; only ports 80 and 443 of the reverse proxy are opened. Binding it to 127.0.0.1 matters: a port published by Docker bypasses UFW and firewalld, as Docker port mapping explains. Check the project's page for the current major version before you pick the image tag.

Create the Admin Account at Once

In version 2 the first visit asks which database to use (the built-in SQLite file suits most setups) and then asks you to create the administrator account. Until you do, anyone who reaches the page can claim it. To reach it before the reverse proxy is ready, open an SSH tunnel from your own computer:

ssh -L 3001:127.0.0.1:3001 user@your_server_ip

Then open http://localhost:3001 in your browser, create the account with a strong password, and turn on two-factor login in the settings.

Put It Behind Nginx with HTTPS

The interface updates live over a WebSocket, so the proxy must pass the upgrade headers. A location block for an Nginx server block:

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-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

Test with sudo nginx -t, reload, and request a certificate. The full setup is in Nginx reverse proxy and Certbot with Nginx. Without the two upgrade lines, the page loads but stays empty or keeps reconnecting.

Add Monitors and Notifications

  1. Click Add New Monitor, choose the type, and enter the address or host and port.
  2. Set the interval and the number of retries before a monitor counts as down, so one lost packet does not wake you up.
  3. Under Notifications, set up a channel once (SMTP mail, a chat webhook, or one of the many built-in services) and attach it to your monitors.
  4. Send a test notification before you rely on it.

Status Pages

A status page shows chosen monitors to your users at a public address, without access to the admin interface. Pick which monitors appear, give each a friendly name, and post incident notes there during an outage. A status page can also get its own domain through the reverse proxy.

Back Up the Data

Monitors, history, and settings live in the volume. Compose prefixes the volume name with the project name; find it with docker volume ls (the example assumes a folder named uptime-kuma). Stop the container, archive the volume, and start it again:

docker compose stop
docker run --rm -v uptime-kuma_kuma-data:/data -v "$PWD":/backup \
  alpine tar czf /backup/kuma-backup.tar.gz -C /data .
docker compose start

Copy the archive off the server. Before updating to a new image, take such a backup, then follow how to update a Docker container.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations