How to Install Uptime Kuma on a VPS with Docker (2026)

Paid uptime services charge per monitor, and the free tiers cap how many sites you can watch. If you already rent a VPS, you can run your own monitor instead. This guide shows how to install Uptime Kuma on VPS with Docker, put it behind Nginx with HTTPS, add your first monitors, and set up alerts so you hear about downtime before your visitors tell you.

Uptime Kuma is a self-hosted uptime monitor with a clean dashboard, status pages, and support for HTTP checks, keyword checks, ping, DNS, TCP ports, and Docker containers. It stores its data in a local SQLite file, so there is no separate database to manage. One small container is the whole application. If you want the broader picture first, the walkthrough on monitoring your website uptime for free with Uptime Kuma explains what it watches and how the dashboard reads.

What You Get From Self-Hosted Uptime Monitoring

Self-hosted uptime monitoring means the checks run from your server, on your schedule, with no per-monitor bill. Uptime Kuma checks each monitor on an interval you choose, records response times, and keeps the history for as long as you keep the data file. You can build a public status page from the same data, so visitors can see your uptime record instead of taking your word for it.

There is one honest limit to know up front: a monitor running on the same server as the site it watches cannot tell you the server itself is down. If the VPS loses power or the provider has an outage, Uptime Kuma goes down with everything else, and no alert goes out. That is why many people run it on a second cheap VPS, or pair it with one external check from a free service. Treat it as your main monitor, not your only one. The comparison of paid uptime monitoring services for VPS owners is useful if you want an external second opinion alongside it.

Resource use is small. Uptime Kuma runs fine on 512 MB of RAM with a handful of monitors.

What You Need on the VPS

You need a VPS with Docker and Docker Compose installed, a domain or subdomain for the dashboard, and Nginx already running if you want HTTPS in front of it. The install below uses status.example.com; point an A record at your VPS IP first and give DNS a few minutes to settle.

Check that Docker is actually running before you start:

docker --version
docker compose version
sudo systemctl status docker --no-pager | head -5

If Docker is not installed, get it from the official Docker repository for your distribution. While you are at it, confirm port 80 and 443 are open in your firewall, because the reverse proxy needs both.

Pick a directory you will remember in six months. /opt/uptime-kuma is a good home: the compose file and a data directory live there, which makes backups and moves simple later.

Install Uptime Kuma on VPS With Docker Compose

Create the folder and write an uptime kuma docker compose file. This is the whole install:

sudo mkdir -p /opt/uptime-kuma/data
cd /opt/uptime-kuma
sudo 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
    healthcheck:
      test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3001').then(r => process.exit(r.ok ? 0 : 1))"]
      interval: 30s
      timeout: 5s
      retries: 3

Binding to 127.0.0.1:3001 keeps Uptime Kuma off the public internet; Nginx will be the only way in. The restart policy brings the container back after a reboot or a crash, and the volume keeps your monitors and history on the host so they survive updates. Pin the image to :2 to avoid a surprise major-version upgrade. The guide on auto-restarting crashed Docker containers on your VPS explains the restart policies in detail.

Start the container and check that it answers on localhost:

sudo docker compose up -d
sudo docker compose ps
curl -s -o /dev/null -w "%{http_code}n" http://127.0.0.1:3001

A 200 response means the app is up. Open the dashboard and create the first admin account on first visit, and pick a strong password: this dashboard can send notifications and expose your status pages, and it should never be left with a weak login. For extra safety, enable two-factor authentication in the settings once you are in.

Uptime Kuma Reverse Proxy With Nginx

Do not leave Uptime Kuma on a bare port. An uptime kuma reverse proxy through Nginx gives you HTTPS and a real domain name, with the option to add basic auth in front of the login page. Create a server block for the subdomain:

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

The Upgrade and Connection headers matter because the dashboard uses WebSockets for live updates. Without them the page loads but live values never refresh. Enable the site, test the config, and reload Nginx:

sudo ln -s /etc/nginx/sites-available/status.example.com /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx

Then add HTTPS with Certbot, the same way you would for any Nginx site. Once the certificate is in place, visit the subdomain and log in. If the dashboard loads but live data stalls, the WebSocket headers are the first thing to check. Healthchecks also help here: the compose file above already includes one, and the guide on Docker Compose healthchecks explains how to tune them so a half-started container does not get traffic before it is ready.

Add Your First Monitors and Alerts

Start with an HTTP monitor for each site you run. Name it after the site, set the URL, and pick a check interval. Sixty seconds is the default and fits most small sites. Twenty seconds gives faster alerts but doubles the requests your sites receive. Set a keyword to watch for in the page body, such as a word from your footer, and Uptime Kuma will mark the site down if the page returns 200 but the content is wrong. That catches the “server up, app broken” case a plain ping misses.

Add a ping monitor for the VPS itself and a TCP monitor for any port that matters, such as 22 for SSH. Each monitor type answers a different question, and together they tell you whether the site, the server, or the network is the problem when something goes red.

Notifications are what turn a monitor into an early warning. In Settings, add a notification channel before you need one: Telegram is a popular pick for a personal VPS because it is fast and free, and email works if you already have sending set up. Test the channel with the built-in test button, then attach it to every monitor.

Group monitors into a status page if you want one, and decide who can see it before you share the link.

Back Up the Data, or Lose Your History

All of Uptime Kuma’s state lives in one SQLite file at /opt/uptime-kuma/data/kuma.db. Back that file up and you keep every monitor, setting, and scrap of history. Lose it and you rebuild from scratch. Copy it nightly to another machine or an object storage bucket:

sqlite3 /opt/uptime-kuma/data/kuma.db ".backup /tmp/kuma-backup.db"
rsync -a /tmp/kuma-backup.db backup-server:/backups/uptime-kuma/

Use the SQLite .backup command instead of copying the live file, because copying a database while it is being written can produce a corrupt copy.

Test a restore at least once: spin up a second container on another port, point it at a copy of the backup, and confirm your monitors appear. Keep a few days of copies so one bad backup does not leave you with nothing.

Fix the Usual Problems

If Uptime Kuma reports a site down but the site loads fine in your browser, check the monitor first. A wrong URL, a keyword that changed when you redesigned a page, or a certificate the container does not trust will all read as downtime. A full troubleshooting walkthrough for these false alarms is in the guide on why Uptime Kuma reports false downtime and how to fix it. Start there before you blame the network.

If the dashboard shows nothing after a server reboot, check the container before anything else. docker compose ps tells you whether it is running, and docker compose logs --tail 50 shows why it stopped. Check disk space with df -h too: if the data volume filled up, the database cannot write and the container may crash in a loop.

If alerts never arrive, the notification channel is almost always the problem. Re-test it from the settings page, check the token or webhook URL for a typo, and confirm the monitor actually has the channel attached.

Once the monitors are green and the alerts are tested, add the sites you forgot: the staging site, the mail server port, the backup job’s endpoint. A monitor only watches what you told it to watch.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.