On this page
- Why monitor from a separate VPS?
- What do I need first?
- How do I start Uptime Kuma with Docker Compose?
- How do I serve it over HTTPS?
- How do I create the admin account and lock it down?
- Which monitors should I add first?
- How do I get notified?
- How do I publish a status page?
- How do I update and troubleshoot it?
- Questions
Why monitor from a separate VPS?
An uptime checker answers one question from the outside: can visitors reach the service right now? It should therefore live somewhere other than the servers it watches. If the checker runs on the same machine as your shop and that machine stops, nothing is left to send the alert. A small, separate VPS in another of our cities gives you an independent vantage point, and Uptime Kuma is light enough that the smallest plans are plenty.
Uptime Kuma checks HTTP and HTTPS endpoints, looks for keywords or JSON values in responses, tests TCP ports, pings hosts, resolves DNS records, watches certificate expiry and can follow Docker containers. Results appear on a clean dashboard, and you can publish selected monitors on a public status page.
What do I need first?
Start with Ubuntu 24.04 or 22.04, or Debian 12 or 13, a sudo user and Docker Engine with the Compose plugin. Our Docker image already has it, or follow the Docker Engine tutorial on a plain image. Check that both pieces work:
docker --version
docker compose version
sudo docker run --rm hello-worldYou also need a hostname such as status.example.net with an A record (and AAAA if you use IPv6) pointing at the server, as explained in DNS records. HTTPS certificates are issued only after that name resolves.
How do I start Uptime Kuma with Docker Compose?
Create a project folder and a compose file that publishes the app on loopback only:
sudo mkdir -p /opt/uptime-kuma
cd /opt/uptime-kuma
sudo nano compose.yamlservices:
uptime-kuma:
image: louislam/uptime-kuma:2
container_name: uptime-kuma
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- ./data:/app/dataThe 127.0.0.1: prefix matters. Docker writes its own packet filter rules, and a plain 3001:3001 mapping would publish the port to the internet even when UFW says it is closed. Start it and confirm it answers:
sudo docker compose up -d
sudo docker compose ps
curl -sI http://127.0.0.1:3001 | head -n 3The tag 2 follows the 2.x release line. Check the project release notes before major upgrades, since version 2 changed the database layer compared with 1.x and the first start after an upgrade migrates your data.
How do I serve it over HTTPS?
Caddy obtains and renews certificates by itself and needs only a short config. Install it as described in Caddy HTTPS, then add a site block:
status.example.net {
reverse_proxy 127.0.0.1:3001
}sudo systemctl reload caddy
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw statusCaddy passes WebSocket upgrades automatically, which Uptime Kuma relies on for its live dashboard. Prefer Nginx? A reverse proxy works as well, as long as you forward the Upgrade and Connection headers.
How do I create the admin account and lock it down?
Open https://status.example.net right after the proxy works: the first visitor creates the admin user, so do not leave a fresh install waiting. Choose a long password, then go to Settings and Security to turn on two-factor authentication. While you are in Settings, set the correct time zone so incident times match your own clock.
Uptime Kuma keeps its SQLite database and uploaded files in /opt/uptime-kuma/data. Back up that folder; the built-in export in older versions is deprecated, so a file level copy is the dependable route:
cd /opt/uptime-kuma
sudo docker compose stop
sudo tar czf /root/kuma-$(date +%F).tar.gz data
sudo docker compose startOur optional daily backups cover the whole disk as well.
Which monitors should I add first?
Begin with a handful that reflect what customers actually notice:
- HTTP(s) with keyword: load your home page and look for a word that only appears when the page renders correctly. A 200 status with an error page inside still fails.
- TCP port: test SSH on 22, a game server port or a database port that should be reachable from the internet.
- Certificate expiry: enable it on HTTPS monitors so you hear about a renewal problem days ahead.
- DNS: confirm that
example.netstill resolves to198.51.100.24. - Push: give a cron job or backup script a URL to call when it finishes, so silence raises the alert.
A push monitor is called from the watched host like this:
curl -fsS -m 10 "https://status.example.net/api/push/AbCdEf123?status=up&msg=OK" >/dev/nullAn interval of 60 seconds with two or three retries avoids alerts for one lost packet.
How do I get notified?
Open Settings, Notifications, and add a channel. Telegram, Discord, Slack, Matrix, ntfy, Gotify and generic webhooks all work without a mail server. For email, use an authenticated SMTP relay on port 587; outgoing port 25 is not something to count on, so open a support ticket before planning direct mail delivery. Press Test on every channel and tick Default enabled on the one you want attached to new monitors.
How do I publish a status page?
Choose Status Pages, create one with a short slug, then add the monitors visitors should see, grouped by service. You can show it on its own name, such as status.example.net, by setting the domain inside the status page settings and adding the matching Caddy block. Keep internal checks such as database ports off the public page; it is easy to add a monitor to the dashboard and leave it out of every status page.
How do I update and troubleshoot it?
cd /opt/uptime-kuma
sudo docker compose pull
sudo docker compose up -d
sudo docker compose logs --tail 50- 502 from Caddy: the container is down or not listening on 3001; check
docker compose ps. - Dashboard keeps reconnecting: a proxy is dropping WebSocket headers.
- False alarms on one site: raise the timeout and retries, or check whether that site blocks unknown user agents.
- Slow after months: lower the data retention days in Settings, Monitor History.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Uptime Kuma status page
Can Uptime Kuma run without Docker?
Yes, it also runs as a Node.js app from its source repository managed by a process manager. Docker is simpler to update and keeps the files in one folder, so this guide uses it.
Which plan is big enough?
Uptime Kuma is light. A 1 GB plan handles dozens of monitors at one minute intervals; add RAM if you plan hundreds of checks.
Should it run on the same server as my website?
Better not. Put it on a separate VPS, ideally in another city, so it still sends alerts when the main server is down.
Does it replace server metrics?
No. It tests reachability from outside. For CPU, memory and disk inside the server use Netdata or Beszel, and the console Usage graphs.
How do I reset a lost admin password?
Run sudo docker exec -it uptime-kuma npm run reset-password and follow the prompt.
More in Monitoring and logs
- Netdata real-time monitoring
- Prometheus and node_exporter
- Grafana dashboards
- Zabbix monitoring
- Nagios Core
- Beszel lightweight monitoring
- Loki and Alloy for central logs
- Cacti graphs with SNMP
- Monit for self-healing services
- btop, htop and other live monitors
- Central logs with rsyslog
- Rotate logs with logrotate
- Read logs with journalctl
- Graylog log management
- Observium network monitoring
- Vector log and metrics pipeline