Your site goes down at 3 a.m. and nobody tells you. Your visitors find out first, your inbox fills up second, and you find out third. When you set up Uptime Kuma on your own server, that order flips: you get the alert within a minute, and you can fix the problem before most people notice it happened. This guide walks through the full install with Docker, adding monitors, and wiring alerts to Telegram and email.
Uptime Kuma is a self-hosted uptime monitoring tool with a clean dashboard, HTTP and keyword checks, ping and port monitors, and a status page you can share with visitors. It stores its data in SQLite by default, runs in a single container, and needs very little memory, which makes it a good fit for the same small VPS that already runs your sites.
What You Need Before You Set Up Uptime Kuma
You need a VPS with Docker and Docker Compose installed, a domain or subdomain for the dashboard, and about 15 minutes. A 1 GB RAM server handles Uptime Kuma with room to spare, since the app itself uses well under 200 MB in normal use. Put the dashboard behind a reverse proxy with HTTPS, and do not expose it on plain HTTP: the dashboard holds the keys to your alert channels.
Pick a subdomain such as status.example.com and point an A record at your server. If you already run Nginx as a reverse proxy, you can add the new host in a few minutes. Readers who have not done this before can follow our guide to setting up Cloudflare in front of a VPS for the DNS and proxy basics, then come back here.
Install Uptime Kuma with Docker Compose
Create a directory for the project and a Compose file inside it. This uptime kuma docker setup uses the official image, a named volume for data, and a restart policy so the container comes back after a reboot.
mkdir -p /opt/uptime-kuma && cd /opt/uptime-kuma
cat > docker-compose.yml <<'EOF'
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-data:/app/data
volumes:
uptime-kuma-data:
EOF
docker compose up -d
Binding to 127.0.0.1 keeps the dashboard off the public internet. Your reverse proxy talks to port 3001 on localhost, and nobody else can reach it directly. Check the container with docker compose ps and docker compose logs -f. When the log shows the server listening, open the subdomain in a browser and create the admin account.
Choose a long admin password and store it in a password manager. Uptime Kuma has no built-in two-factor option in the open-source build, so a strong password plus a reverse proxy with HTTPS is your main defence. If your server still needs basic hardening, work through our 15 steps to harden a fresh Ubuntu server before you put any dashboard online.
Add Your First Monitors
Click “Add New Monitor” and start with your most important site. An HTTP monitor sends a request on a schedule and marks the site up or down based on the response. Set the interval to 60 seconds for a normal site and 20 seconds for anything that earns money while it is up.
- HTTP(s) monitor: checks a URL and expects a 2xx status. Add a keyword check if you want to confirm the page body contains a word from your site, which catches cases where the server answers but the app serves an error page.
- Ping monitor: checks whether a host answers ICMP. Use it for a server or a device that has no web service.
- Port monitor: checks whether a TCP port accepts connections. Use it for databases, mail servers, and game servers.
- DNS monitor: checks that a hostname resolves to the expected address. Use it to catch DNS mistakes after a migration.
Give every monitor a clear name, such as “Main site – homepage” instead of “Site 1”. When an alert fires at night, the name is the first thing you read, and a clear name tells you what broke without opening the dashboard. Group related monitors with tags, for example “production” and “client sites”, so the dashboard stays readable as you add more.
Set Up Downtime Alerts That Actually Reach You
A monitor without an alert is a dashboard you have to stare at. Uptime Kuma supports dozens of notification channels. Telegram downtime alerts arrive in seconds, which is why most self-hosters pick Telegram first. Create a bot with BotFather, start a chat with it, and get your chat ID from the Bot API. Then add a Telegram notification in Uptime Kuma with the bot token and chat ID, and send a test alert before you trust it.
Email is the fallback for people who do not use Telegram. Add an SMTP notification with your mail provider settings and send a test message. Keep both channels if your sites matter: Telegram for speed, email for a paper trail. Set the “notification” on each monitor, not just on the dashboard, or nothing will fire when a check fails.
Think about alert fatigue before you add your tenth monitor. A check every 20 seconds on a flaky shared host will page you for every short blip. Use the retry setting so Uptime Kuma confirms a failure two or three times before it alerts, and set a longer interval for low-priority services. One alert you act on beats ten you learn to ignore. For a wider look at which tools fit different setups, see our roundup of the best self-hosted monitoring tools compared.
Build a Public Status Page
Uptime Kuma includes a status page that shows uptime history for the monitors you choose. Create one under Settings, then add the monitors you want visitors to see. Keep internal services off the public page: visitors need to see the website and the API, not your database port.
Add your logo, a short description, and a custom domain for the page. Link it from your site footer so visitors can check service health themselves instead of emailing you. When an incident happens, post an update on the status page first, then fix the problem. Visitors who see an honest status update wait longer than visitors who see a dead page and silence.
Back Up the Uptime Kuma Database
Uptime Kuma stores monitors, history, and settings in a SQLite file inside its data volume. If the disk dies, you lose months of uptime history, which is the data you need when a client asks how reliable their site was. Back up the volume on a schedule.
The simplest method is a nightly copy of the data directory to another location, taken while the container is stopped for a few seconds, or a SQLite backup from a running container. Keep at least one copy off the server. Our guide to automating Linux server backups with restic and cron covers a setup that works well for this kind of small, single-file data.
Common Problems and Fixes
Most Uptime Kuma problems come from the network around it, not the app itself. If the dashboard will not load, check that the container is running, that the reverse proxy points at port 3001, and that the firewall allows traffic on 443. If monitors report a site as down while the site loads fine in a browser, check whether the server blocks the monitor user agent or whether the keyword you set appears in the page body.
If alerts never arrive, test the notification channel from the settings page and read the error it returns. Telegram alerts fail most often because the bot token has a typo or the chat ID belongs to the wrong chat. If history graphs look empty after an upgrade, wait one full interval and refresh; the dashboard fills in as new checks run.
Keep the Monitor Healthy
Update the image every month or two with docker compose pull && docker compose up -d, and read the release notes first when a major version appears. Watch disk use: a year of one-minute checks across twenty monitors builds a large history table. Uptime Kuma prunes old data on its own schedule, but a small VPS still deserves a glance at disk space now and then. Our Linux server monitoring basics guide explains the disk, memory, and load numbers worth watching.
Once the first monitors and alerts are live, add the rest of your services one at a time and test each alert as you go. A monitoring setup you have tested beats a bigger setup you only assume works.