Uptime Kuma is a self-hosted uptime monitor with a clean dashboard. If you would rather not self-host, UptimeRobot, Better Uptime, and HetrixTools cover the same job as hosted services. This guide shows you how to install Uptime Kuma Docker on your own VPS with Docker Compose, from the first container to HTTPS, monitors, and Telegram alerts.
You add monitors for the services you care about, and it checks them on a schedule you set (60 seconds by default), recording response time and up/down history.
What Uptime Kuma Monitors
Monitor types worth knowing:
– HTTP(s) and HTTP(s) Keyword — watches a website or API endpoint. The keyword variant alerts when the page loads but the expected text is missing, which catches “200 OK but broken app” situations.
– TCP Port — checks that a service answers on a specific port, like a database or mail server.
– Ping — sends ICMP echo to see if a host is reachable at the network layer.
– Docker Container — tracks whether a named container on the Docker host is running, useful when Uptime Kuma shares the host with your apps.
– DNS — verifies a record resolves to the expected value.
Each monitor keeps its own uptime percentage and response-time chart, and the dashboard groups them so you can see everything at a glance.
Prerequisites
You need a VPS with Docker Engine installed and a domain or subdomain pointed at the server if you want HTTPS (for example, status.yourdomain.com). Any small VPS works; Uptime Kuma uses very little RAM and CPU.
Log into your server and confirm Docker is up:
docker --version
docker compose version
Both commands should print version numbers. If Docker is missing, install it from the official Docker docs for your distro before continuing.
Install Uptime Kuma Docker with Compose
Create a directory for the stack and a compose file inside it:
mkdir -p ~/uptime-kuma && cd ~/uptime-kuma
nano docker-compose.yml
Paste this in:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- uptime-kuma:/app/data
volumes:
uptime-kuma:
This docker compose monitoring setup makes three decisions for you, and all of them matter. First, the named volume uptime-kuma holds everything under /app/data, which is where the SQLite database lives. If you use a bind mount instead, that works too, but a named volume keeps permissions simple and survives container recreation. Second, the port binds only to 127.0.0.1, so Uptime Kuma is not exposed to the internet directly; Nginx will proxy to it. Third, restart: unless-stopped brings it back after a reboot without you touching anything.
Start it:
docker compose up -d
docker compose ps
The second command should show uptime-kuma as running. Open your browser to http://YOUR-SERVER-IP:3001 — replace with your server IP. Since the port binds to localhost, open it through an SSH tunnel for the first visit:
ssh -L 3001:localhost:3001 user@your-server-ip
Then visit http://localhost:3001. The first screen asks you to create the admin account. Pick a strong password; this account controls everything.
Put It Behind Nginx with HTTPS
Exposing port 3001 to the world is a bad idea: the dashboard holds your infrastructure map and notification tokens. Proxy it through Nginx on a subdomain instead.
Create a vhost:
sudo nano /etc/nginx/sites-available/uptime-kuma
server {
listen 80;
server_name status.yourdomain.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 are there because Uptime Kuma uses WebSockets for live dashboard updates; without them the UI connects but never refreshes.
Enable the site, test the config, reload:
sudo ln -s /etc/nginx/sites-available/uptime-kuma /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
Then get a free certificate:
sudo certbot --nginx -d status.yourdomain.com
Certbot edits the vhost for you and sets up renewal. From now on, log in at https://status.yourdomain.com and close port 3001 at your firewall — the localhost binding already blocks it, but an explicit rule removes doubt.
Add Your First Monitors
Click Add New Monitor in the dashboard. A practical starter set for a small VPS:
HTTP(s) monitor for your website
Type HTTP(s), name it, paste your site URL. Leave the interval at 60 seconds and set retries to 2 or 3 so one slow response does not page you. If your page contains a known string — a footer text, a version number — use the HTTP(s) Keyword type with that string so the monitor also catches empty or broken renders.
TCP monitor for services
Type TCP, hostname your server IP or domain, port 22 for SSH or 3306 for MySQL. This tells you the service answers, not just that the machine pings.
Ping monitor for the host itself
Type Ping and enter the server IP. This is your cheapest “is the box alive” check, though some networks rate-limit ICMP, so treat a flaky ping monitor as a network hint rather than an outage.
Docker container monitor
Type Docker Container, enter the container name, and point it at your Docker socket (/var/run/docker.sock). Mount the socket into the Uptime Kuma container first by adding - /var/run/docker.sock:/var/run/docker.sock to the volumes section, otherwise this monitor type cannot see your containers. Restart the stack after changing the compose file.
After saving each monitor, the dashboard starts charting uptime and latency immediately.
Set Up Uptime Kuma Telegram Notifications
Notifications are the whole point; a dashboard you never look at changes nothing. Telegram is the fastest to wire up.
1. Message @BotFather on Telegram, create a bot, and copy the token.
2. Start a chat with your new bot and send any message, then open https://api.telegram.org/bot<TOKEN>/getUpdates to find your chat ID.
3. In Uptime Kuma, go to Settings > Notifications, add a Telegram provider, paste the token and chat ID, and send a test message.
4. Edit each monitor and tick the notification so alerts route to it.
Prefer email? Add an Email (SMTP) provider with your mail server details. Telegram tends to arrive faster and survives a mail server outage, which is exactly when you need the alert.
Set notification timing sensibly: alerts on DOWN after 2–3 failed checks, and a recovery message when it comes back. Notification spam trains you to ignore the channel, so keep the monitor list honest.
Publish a Status Page
If clients or users ask “is it down?”, a public status page answers before they message you. Go to Status Pages, add one, and attach the monitors you want visible. You can group them (for example, “Websites”, “Services”) and the page shows green/amber/red history bars per monitor.
Give the page a slug like status. An uptime kuma status page turns raw check data into green/amber/red history bars your users can read, and the incident feature lets you post “investigating / identified / resolved” notes with timestamps during an outage.
Keep Uptime Kuma Updated
Updates ship regularly, and running an old internet-facing dashboard is asking for trouble. The data lives in the volume, so updating is safe:
cd ~/uptime-kuma
docker compose pull
docker compose up -d
docker image prune -f
Pull the new image, recreate the container, and prune the old image to free disk. Your monitors, history, and settings survive because they sit in the named volume. Do this monthly, or watch the project’s release notes if you want to be selective.
Back up the volume before major version jumps:
docker run --rm -v uptime-kuma:/data -v $(pwd):/backup alpine
tar czf /backup/uptime-kuma-backup.tar.gz -C /data .
That gives you a dated tarball you can restore from if an upgrade ever misbehaves.
FAQ
Does Uptime Kuma need a lot of server resources?
No. It is a Node.js app with a SQLite database, and it runs comfortably on a 1 GB VPS alongside other services. Memory use stays low even with dozens of monitors at 60-second intervals.
Can I monitor Docker containers on another host?
The Docker Container monitor type talks to the local Docker socket. For containers on other servers, use TCP or HTTP(s) monitors against those services instead, or run a second Uptime Kuma instance on that host.
Conclusion
Uptime Kuma takes about fifteen minutes to deploy: one compose file, an Nginx reverse proxy with HTTPS, monitors for the services you care about, and Telegram alerts so you hear about problems before your users do. Keep the monthly update habit, and your self-hosted monitoring stays trustworthy.