There is a specific kind of sinking feeling every indie developer and small online business owner knows too well. You open your inbox on a Tuesday morning and see a polite email from a paying customer: "Hey, just wanted to let you know your checkout page has been throwing a 502 error since around 2 AM."
Your site was down for six hours. Not only did you miss the outage completely, your customer had to act as your monitoring system.
So you look for an uptime monitor. Most hosted services give you a taste on their entry tier, then box you in with artificial limits: five-minute check intervals that miss brief crashes, strict caps on how many endpoints you can track, and third-party branding plastered across your status page.
You do not need another rented SaaS subscription just to ping your own server. You can self-host Uptime Kuma and own your entire monitoring stack in minutes.
What Is Uptime Kuma?
Uptime Kuma is an open-source, self-hosted monitoring tool with around 64k stars on GitHub and a clean, reactive web interface that feels modern right out of the box. Under the hood it stores everything in a lightweight SQLite database, so you do not need to manage an external database server just to track your services.
Despite its small footprint, it covers almost every monitoring check an indie stack or small business needs:
- HTTP(S): Check response codes, latency, and TLS certificate expiration.
-
Keyword: Verify that a specific string actually appears in the HTML or JSON response (catching broken pages that still return
200 OK). - TCP Port & Ping: Confirm databases, mail ports, or game servers are reachable.
- DNS: Watch critical A, AAAA, CNAME, or MX records for unexpected changes.
- Push Monitors (Heartbeat): Give Uptime Kuma a unique URL and have your cron jobs, backup scripts, or background workers call it when they finish. If a nightly job fails to check in on schedule, you get alerted.
No arbitrary cap on monitors, no locked-down check intervals, and no external branding on your status pages.
Step-by-Step Setup With Docker
The cleanest way to run Uptime Kuma is with Docker and Docker Compose. That keeps the runtime isolated, makes upgrades predictable, and puts all persistent state inside a single volume.
Create a dedicated directory on your server and add a compose.yaml file:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: unless-stopped
ports:
- "3001:3001"
volumes:
- uptime-kuma:/app/data
volumes:
uptime-kuma:
Start the container in the background:
docker compose up -d
If you prefer a single command without Compose, you can launch it directly:
docker run -d \
--name uptime-kuma \
--restart=always \
-p 3001:3001 \
-v uptime-kuma:/app/data \
louislam/uptime-kuma:1
Once the container is running, open http://<your-server-ip>:3001 in your browser (or put it behind a reverse proxy like Nginx or Caddy with HTTPS).
Initial Login
On your first visit, Uptime Kuma prompts you to choose a language and create your admin username and password. There are no default credentials to look up—just set a strong password and you land directly on the dashboard.
Add Your First HTTP Monitor
Click Add New Monitor in the top-left corner and configure your primary site or API endpoint:
-
Monitor Type: Select
HTTP(s). -
Friendly Name: Something recognizable in an alert, like
Main Web ApporProduction API. -
URL: Enter the full
https://endpoint you want to check (for APIs, point it at a lightweight/healthroute that verifies database connectivity). -
Heartbeat Interval: Set this to
60seconds. Checking once a minute catches real outages quickly without hammering your own application logs. -
Retries: Set Retries to
2or3with a short retry interval (for example,30seconds). A single dropped packet or brief container reload should not wake you up at 3 AM. With retries enabled, Uptime Kuma only marks the service as Down and triggers alerts after consecutive failures.
Click Save, and your first monitor starts reporting immediately.
Configure Notifications (Down AND Recovery)
A dashboard is useless if you have to remember to look at it. Uptime Kuma supports dozens of notification providers natively, and you can attach one or multiple channels to any monitor.
Three practical options work well for solo founders and small teams:
- Telegram Bot: Fast, reliable, and impossible to miss on your phone. Create a bot through BotFather, grab the bot token and your chat ID, and paste them into Uptime Kuma's Telegram notification setup.
- Email / SMTP: Useful for sending alerts to a shared team inbox or an operations alias. Enter your SMTP host, port, username, password, and recipient address, then click Test.
- Webhook: Ideal if you want outage events delivered to a custom endpoint, Slack-compatible incoming webhook, or an automation pipeline that restarts a service or opens a ticket.
When you test and save a notification channel, toggle it on as Default enabled so every future monitor inherits it automatically.
Just as important as the Down alert is the Up (Recovery) notification. Uptime Kuma sends both automatically when a monitor transitions state. Knowing your site went down gets you out of bed; getting the recovery ping lets you confirm your fix actually stuck before you close your laptop.
Give Customers a Public Status Page
When something does break, customers want to know you are aware of it and working on it. Instead of replying to twenty identical support emails, you can publish a clean Status Page directly inside Uptime Kuma.
- Open Status Pages in the top navigation bar and click New Status Page.
- Give it a name and URL slug, then assign your own custom domain if you proxy traffic through HTTPS.
- Group your public-facing monitors (for example,
Website,Checkout API,Webhooks) while keeping internal monitors private. - Post incident banners directly on the page during an outage so users see real-time updates without needing third-party branding or a separate status page vendor.
Keep the Monitor Itself Alive
Your monitoring tool is infrastructure too. Treat it like production software with three habits:
-
Use a restart policy: Both
restart: unless-stopped(Compose) and--restart=always(docker run) ensure Docker brings Uptime Kuma back automatically if the process crashes or the host server reboots. -
Back up the SQLite data volume: Everything—monitors, notification configs, status pages, and uptime history—lives inside
/app/data(kuma.db). Include that Docker volume in your regular server snapshots or copy it off-site with a scheduled backup script:
docker run --rm \
-v uptime-kuma:/data:ro \
-v "$(pwd)":/backup \
alpine tar czf /backup/uptime-kuma-backup.tar.gz -C /data .
-
Apply updates cleanly: Updating takes two commands and preserves your
/app/datavolume:
docker compose pull && docker compose up -d
Use Maintenance Windows for Planned Restarts
Nothing trains you to ignore your own alerts faster than false alarms during deploys or OS updates. Before you reboot a server, upgrade a database, or run migrations, set up a Maintenance window in Uptime Kuma.
From the Maintenance tab, you can schedule a one-off window, a recurring weekly patching slot, or a manual maintenance toggle. While active, Uptime Kuma pauses notifications for the selected monitors and reflects the planned work cleanly on your status page—so planned restarts do not page you or skew your reliability metrics.
Honest Notes: Do Not Put the Watchdog on the Same Failing Box
One trap catches almost everyone who self-hosts monitoring for the first time: running Uptime Kuma on the exact same VPS as the website it is supposed to watch.
If your application crashes, Uptime Kuma on the same machine will still catch it. If the VPS itself locks up, runs out of memory, or loses network connectivity, your watchdog dies with it. You are right back to waiting for a customer email.
To make self-hosted monitoring genuinely reliable, put Uptime Kuma somewhere independent:
- Run it on a second, separate small VPS in another region or with a different hosting provider.
- Keep that monitor host lightweight and isolated so an application traffic spike on your main server never starves your monitor.
With a tiny independent host running Docker, you get instant alerts, clean status pages, and full ownership of your uptime data—without ever finding out about a six-hour outage from a customer again.
Want to skip writing Compose files and configuring containers by hand? You can install Uptime Kuma in about a minute from the catalog at https://deployinstant.com/apps.
Top comments (0)