Server room with blinking status lights on network equipment, representing infrastructure monitoring

How to Install Uptime Kuma to Monitor Your Homelab (2026 Guide)

The short answer: Uptime Kuma runs as a single container. Use the louislam/uptime-kuma:2 image, publish port 3001, and mount a local directory on /app/data. Then open http://your-server-ip:3001, pick a database, create the admin account and add your first monitor. Below is the Docker Compose file, what to monitor first, alerts, status pages, Docker container monitoring, upgrades from version 1, and the errors people hit, all checked against the project’s own documentation as of 31 October 2026 (current release 2.5.8).

From the homelab: the RTM lab runs two Uptime Kuma instances, one inside the lab and one on a small cloud VM off-site, so a power cut or broadband outage at home still raises an alert from somewhere that is not affected by it. The off-site instance is deployed from a compose file almost identical to Option 2 below: louislam/uptime-kuma:2.5.5, ./data:/app/data and TZ=Europe/London.

Why You Need Monitoring

The common homelab failure is not a crash you notice. It is the reverse proxy that stops at 1am while every container behind it is still “running”, or the backup target that dropped off the network last week. Nothing tells you, and you find out when you need the thing that broke, with no record of when it went down.

Most homelab guides get the order backwards: deploy 15 containers, then mention monitoring as an afterthought. In enterprise environments monitoring goes in first, or at worst alongside the services it watches. Your homelab deserves the same discipline, and Uptime Kuma makes it cheap.

Uptime Kuma vs the Alternatives

Nagios, Zabbix, Grafana stacks and commercial tools like Datadog and PagerDuty all have their place in production. For a homelab, most of them are overkill or cost money you do not need to spend.

  • Nagios/Zabbix – powerful but complex, with configuration that takes real time to learn. Fine for enterprise, unnecessary friction for a homelab.
  • Grafana + Prometheus – brilliant for metrics and dashboards (CPU, disk, latency over time), but several services to run just to get “is it up?” alerts. Great as a second layer, which is how most people pair them.
  • UptimeRobot/Pingdom – hosted, which defeats the self-hosting point, and they cannot see services that are only on your LAN.
  • Gatus – another good self-hosted option, configured entirely in YAML. Pick it if you want monitors in Git; pick Uptime Kuma if you want a web UI.
  • Uptime Kuma – one container, SQLite or MariaDB storage, a clean web UI, dozens of notification integrations, and useful within ten minutes.

Uptime Kuma answers “is it up, and how fast did it answer?”. It does not replace a metrics stack, but it is the right first layer, and for many homelabs it is all you need.

Prerequisites

  • A Linux host with Docker Engine and the Compose plugin. Any Debian/Ubuntu machine, a Raspberry Pi, a mini PC or a VM. If you have not got Docker yet, follow the Docker installation guide first. docker compose version should print a v2 version.
  • Local storage for the data directory. The project’s README is explicit that network file systems such as NFS are not supported. Use a local directory or a Docker volume.
  • Ideally, a host that is not the one you are monitoring. If Uptime Kuma lives on the same box as everything else, it goes down with them and cannot tell you.

It is light. The image’s download size is the bigger cost: on Docker Hub on 31 October 2026 the 2 tag was about 617 MB compressed for amd64, and 2-slim about 185 MB. The full image includes an embedded MariaDB and a Chromium for the “Browser Engine” monitor type; slim has neither, but SQLite and external MariaDB still work. On a Raspberry Pi or a small SD card, slim is the sensible choice.

Step-by-Step Installation

Which Image Tag?

Use louislam/uptime-kuma:2 (or 2-slim), or pin a release such as 2.5.8. The Docker tags page marks latest as deprecated: it still points to version 1. Plenty of older guides, and plenty of running installs, use :latest and are quietly stuck on 1.23.x. Check yours with docker inspect -f '{{.Config.Image}}' uptime-kuma.

Option 1: Docker Run (Quick Start)

docker run -d \
  --name uptime-kuma \
  --restart=unless-stopped \
  -p 3001:3001 \
  -v uptime-kuma-data:/app/data \
  louislam/uptime-kuma:2

Visit http://your-server-ip:3001 and you will see the setup screen.

Option 2: Docker Compose (Recommended)

For anything beyond a quick test, use Compose. It is repeatable, it can live in Git, and rebuilding or migrating becomes one command.

mkdir -p ~/docker/uptime-kuma
cd ~/docker/uptime-kuma

Create a docker-compose.yml file (this follows the project’s own compose.yaml, plus a container name and time zone):

services:
  uptime-kuma:
    image: louislam/uptime-kuma:2
    container_name: uptime-kuma
    restart: unless-stopped
    ports:
      - "3001:3001"
    environment:
      - TZ=Europe/London
    volumes:
      - ./data:/app/data

There is no version: line: Compose v2 ignores it and prints a warning if you add one. Bring it up:

docker compose up -d

To keep it off the rest of the network until you put a reverse proxy in front, bind the port to localhost instead: "127.0.0.1:3001:3001".

Verify It Is Running

The image has a built-in health check (every 60 seconds, after a 180-second start period), so docker compose ps tells you more than “Up”:

docker compose ps
docker compose logs --tail 20 uptime-kuma

Example output (IDs, times and versions will differ):

NAME          IMAGE                    SERVICE       STATUS                    PORTS
uptime-kuma   louislam/uptime-kuma:2   uptime-kuma   Up 3 minutes (healthy)    0.0.0.0:3001->3001/tcp

It shows (health: starting) for the first few minutes, then (healthy). Open http://your-server-ip:3001 in your browser.

Initial Setup

On the first visit, version 2 asks “Which database would you like to use?”. The options are Embedded MariaDB (full image only), an external MariaDB/MySQL server, or SQLite, which the setup page itself recommends for small deployments. For a homelab, SQLite is the low-effort choice. The choice is saved to db-config.json in the data directory, and the project does not support converting an SQLite install to MariaDB later, so decide now if you think you will want MariaDB.

Next, create the admin account. Pick a strong password: if you later expose the dashboard through a reverse proxy, it shows your whole infrastructure layout. Turn on two-factor authentication under Settings > Security once you are in.

Click Add New Monitor. The Monitor Type list includes HTTP(s), TCP Port, Ping, DNS, Docker Container, keyword and JSON checks and more. Start with an HTTP(s) monitor pointed at something you care about, such as your reverse proxy.

Set the Heartbeat Interval to 60 seconds. Set Retries to 2 or 3: version 2 changed the default for new monitors to 0, which means one dropped packet is an outage alert. A retry or two stops a network blip from training you to ignore alerts.

What to Monitor First

Do not try to monitor everything on day one. Start with the services that would cause real pain if they went down silently.

1. Your Reverse Proxy

If you run Nginx Proxy Manager, Traefik or Caddy, this is your most critical service. If the proxy is down, everything behind it is unreachable. Add an HTTP monitor on a URL that goes through the proxy.

2. DNS Resolution

If you run Pi-hole, AdGuard Home or any local DNS, add a DNS monitor. Point it at your DNS server and resolve a known name. This catches the failure where the web UI is fine but resolution has stopped.

3. Your NAS or File Server

A Ping or TCP Port monitor on your NAS (port 445 for SMB, 2049 for NFS). If it drops offline overnight, you want to know before your backups fail silently for a week.

4. Key Self-Hosted Services

HTTP monitors on the services you use most: Nextcloud, Gitea, a wiki, whatever would disrupt your day if it vanished. If you run Vaultwarden as your password manager, put it near the top. Your household’s ability to log in to anything depends on it.

5. External Dependencies

An HTTP check on https://1.1.1.1 or https://dns.google. If this fails but internal services are fine, your internet connection has dropped. If everything fails including this, it is power or the Uptime Kuma host itself. Having an external baseline makes troubleshooting faster.

6. SSL Certificate Expiry

HTTPS monitors record the certificate’s expiry date, but the warning is opt-in: tick Certificate Expiry Notification on each HTTPS monitor, and set how many days before expiry you are warned under Settings > Notifications > TLS Certificate Expiry. Expired certificates cause real outages in real organisations; catching them at home is good practice.

Career context: knowing what to monitor, and why, is worth more than knowing how to install the tool. In interviews for SRE, DevOps or platform roles you will be asked about monitoring strategy. “I monitor the reverse proxy, DNS resolution and key service endpoints with the right check types, retries, and an off-host monitor so the monitor does not share a failure with what it watches” is a better answer than “I installed Grafana.”

Monitoring Services on the Same Host

Inside the container, localhost means the Uptime Kuma container itself, not your server. A monitor on http://localhost:8080 will fail even though the service works from your browser. Use the host’s LAN IP (for example http://192.168.1.50:8080), or the container name if both services share a Docker network. You can also add this to the compose service and use http://host.docker.internal:8080:

    extra_hosts:
      - "host.docker.internal:host-gateway"

Setting Up Notifications

Monitoring without notifications is a dashboard you will forget to check. Go to Settings > Notifications and click Set Up Notification.

Telegram

Telegram is a good default for homelab alerts: free, reliable, on every platform, and the bot setup is simple.

  1. Open Telegram and search for @BotFather.
  2. Send /newbot and follow the prompts. Give it a name like “Homelab Monitor”.
  3. BotFather gives you an API token. Copy it.
  4. Create a group for your alerts and add your bot to it.
  5. Send a message in the group, then open https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates in your browser and find the chat.id value (group IDs are negative numbers).
  6. In Uptime Kuma, choose Telegram as the notification type, paste the Bot Token and Chat ID, and click Test.
Notification Type: Telegram
Bot Token: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
Chat ID: -1001234567890

You should get a test message within seconds.

Discord

If your household or friends already use Discord, a webhook is even simpler:

  1. In your Discord server, go to Server Settings > Integrations > Webhooks.
  2. Create a webhook, pick the channel for alerts, and copy the webhook URL.
  3. In Uptime Kuma, add a Discord notification, paste the URL and click Test.
Notification Type: Discord
Webhook URL: https://discord.com/api/webhooks/1234567890/abcdef...

Tip: set up at least two notification channels. If your email server is the thing that just went down, email alerts about it will not reach you. Telegram as the main channel with Discord or ntfy as a backup covers most failures.

Notifications are attached per monitor. When you create a notification, tick Default enabled so new monitors get it, and Apply on all existing monitors to attach it to the ones you already have. Without the second box, existing monitors stay silent.

Creating a Status Page

Uptime Kuma includes status pages, like the ones on githubstatus.com, for your own services.

  1. Click Status Pages, then New Status Page.
  2. Give it a name and a slug (for example homelab).
  3. Add groups such as “Core Infrastructure”, “Applications” and “External Dependencies”.
  4. Add your monitors to the groups.
  5. Save. Customise the description and footer if you want.

The page is at http://your-server-ip:3001/status/homelab, and it does not need a login, so only add monitors you are happy for anyone with the link to see. Behind a reverse proxy it can have a clean URL like status.yourdomain.com. If you do not have a domain yet, DuckDNS gives you a free subdomain with dynamic DNS that works for this.

A status page also makes a good default tab in your homelab browser profile: one glance tells you if anything needs attention.

Advanced Monitoring

Docker Container Monitors

To check container state directly, Uptime Kuma needs access to the Docker API. The simplest way is to mount the socket in the compose file:

    volumes:
      - ./data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock:ro

Then go to Settings > Docker Hosts, add one with connection type Socket and path /var/run/docker.sock, and create monitors of type Docker Container using the container name.

Read what :ro does before relying on it. It stops the container replacing the socket file; it does not make the Docker API read-only. Anything that can talk to the socket can start, stop or create containers, which is root-equivalent access to the host. The project’s Docker monitoring page says not to expose Uptime Kuma to the internet when using this. If that matters to you, skip the socket and use HTTP/TCP monitors, or put a read-only socket proxy in front of it.

To watch containers on other hosts, the same page describes exposing each Docker daemon over TCP (port 2375 without TLS, 2376 with TLS) and adding it as a Docker Host of type TCP. Use the TLS option: an unauthenticated 2375 is full control of that host for anyone who can reach it.

Use container monitors and HTTP monitors together. A container can be “running” with a stuck process inside, and an HTTP check can catch the three seconds a crash-looping container happened to be up.

TCP Port Checks

Not every service has a web interface. For databases (PostgreSQL on 5432, Redis on 6379), MQTT brokers, SSH, or anything else that listens on a port, a TCP monitor confirms the port accepts connections.

Monitor Type: TCP Port
Hostname: 192.168.1.50
Port: 5432
Heartbeat Interval: 60

DNS Resolution Checks

The DNS monitor performs a real query against the server you name and checks the answer. Resolve a name you control and compare the result with what you expect. This catches configuration drift, not just outages.

Monitor Type: DNS
Hostname: nas.home.example
Resolver Server(s): 192.168.1.53
Port: 53
Resource Record Type: A

Keyword Monitoring

The HTTP(s) – Keyword monitor checks the response body for a word that should always be there, such as the service name or a known heading. It catches the service that returns 200 while showing an error page.

Push Monitors for Cron Jobs and Backups

A Push monitor flips the direction: Uptime Kuma gives you a URL, and your job calls it when it finishes. If the call does not arrive within the interval, you get an alert. Add the URL to the end of a backup script with curl -fsS "https://status.yourdomain.com/api/push/abc123?status=up&msg=OK" and a backup that silently stopped running becomes an alert.

Putting Uptime Kuma Behind a Reverse Proxy

Uptime Kuma’s web interface runs over WebSocket, so the proxy must pass the Upgrade and Connection headers. In Nginx Proxy Manager, tick Websockets Support on the proxy host. For hand-written Nginx, the project’s reverse proxy page has the exact proxy_set_header lines. A proxy without them gives you a login page that loads and then hangs, or a dashboard that never fills.

Backups and Updates

Version 2 removed the old JSON export. The project now says backing up the data directory is the only supported backup method. With SQLite, stop the container first so the database is not mid-write:

cd ~/docker/uptime-kuma
docker compose stop
sudo tar -czf ~/uptime-kuma-backup-$(date +%F).tar.gz data
docker compose start

To update within version 2:

docker compose pull
docker compose up -d
docker compose logs -f uptime-kuma

With the :2 tag, pull fetches the newest 2.x release. If you pinned a version, change the number in the compose file first. Release notes are on the releases page.

Upgrading from Version 1 to Version 2

This is a one-way database migration. Follow the official migration guide: run docker compose down, back up the data directory, change the image to louislam/uptime-kuma:2, run docker compose up -d, and watch docker compose logs -f. The guide’s own example took about seven minutes for 20 monitors with 90 days of history, and it can take hours on slow hardware or a large database. Do not interrupt it; an interrupted migration means restoring the backup and starting again. Do not use a -rootless tag for the upgrade, and do not upgrade on a Debian or Raspbian Buster host (a libseccomp2 bug stops it starting).

Other changes worth knowing after the upgrade: new monitors default to 0 retries, SMTP notification templates now use LiquidJS (variable names are case-sensitive), badge duration parameters only accept values like 24h, 30d or 1y, and Alpine-based images are gone.

Troubleshooting

Container Will Not Start

docker compose logs uptime-kuma

The usual cause is port 3001 already in use (Bind for 0.0.0.0:3001 failed: port is already allocated). Check with sudo ss -tlnp | grep 3001, then stop the conflicting service or change the host side of the mapping, for example "3002:3001". The second most common cause is the data directory on NFS or another network share: move it to local disk.

“Database migration failed” After an Upgrade

Usually an interrupted v1 to v2 migration, a full disk, or a data directory on a network share. Check free space with df -h, restore the backup you took before upgrading, make sure the data is on local storage, and run the upgrade again without interrupting it. This is why the backup step in the migration guide is not optional.

Monitor Shows DOWN but the Service Works in Your Browser

Test from inside the container, as the troubleshooting page suggests:

docker exec -it uptime-kuma bash
curl -I http://192.168.1.50:8080

If curl is missing in your image, install it inside the container with apt update && apt --yes install curl as that page describes. If it fails from inside the container, it is networking: localhost pointing at the container (see above), a firewall, or an IPv6-only target (Docker does not enable IPv6 by default).

“self signed certificate” or “unable to verify the first certificate”

The target uses a certificate Uptime Kuma does not trust: a self-signed one, an internal CA, or a server missing its intermediate certificate. For a trusted internal service you can tick Ignore TLS/SSL errors for HTTPS websites on that monitor. For a public site, “unable to verify the first certificate” usually means the server is not sending its full chain, and that is worth fixing at the server.

Forgotten Admin Password

Reset it from the command line, as described on the reset password page:

docker exec -it uptime-kuma bash
npm run reset-password

Notifications Not Sending

Use the Test button on the notification. If the test works but real alerts do not fire, the monitor does not have that notification enabled. Open the monitor, check the Notifications section, or re-save the notification with Apply on all existing monitors ticked.

False Positives (Flapping)

If you get alerts for services that are fine, raise Retries to 3 or 5. A single failed check can come from a busy host, a network blip or a garbage-collection pause. You want to alert on sustained failures, not momentary hiccups. Checking every 20 seconds is aggressive for a homelab; 60 seconds suits most services, and 30 seconds is reasonable for the proxy and DNS.

Warning: for external services (other people’s websites and APIs), use longer intervals. Checking someone else’s site every 20 seconds from a home IP can get you rate-limited or blocked. 300 seconds (5 minutes) is reasonable for external targets.

Database Growing Too Large

Uptime Kuma keeps heartbeat history in its database. Under Settings > Monitor History you set how many days to keep; in current 2.x code the default is 365 days. Lower it if disk space is tight. On SQLite, the same page has a Shrink Database button that runs VACUUM to reclaim the space.

Cheat Sheet

Task Command or setting
Image tag louislam/uptime-kuma:2 (or 2-slim, or a pinned 2.5.8); not latest
Port / data path 3001 / /app/data (local disk, not NFS)
Start or apply changes docker compose up -d
Health docker compose ps shows (healthy)
Update docker compose pull && docker compose up -d
Backup Stop, then archive the data directory
Reset password docker exec -it uptime-kuma bash, then npm run reset-password
Monitor a service on the same host Use the LAN IP, or host.docker.internal with host-gateway
Behind a proxy Enable WebSocket support
Sensible defaults 60 s interval, 2 to 3 retries, 300 s for external sites

You Are Monitoring Your Homelab. Here Is What Else You Should Be Running.

Uptime Kuma gives you visibility. Monitoring is one piece of a properly run homelab. Here is what to tackle next:

Watch out for this: version 2 creates new monitors with zero retries, so a single failed check is an alert. Set 2 to 3 retries with 60-second checks for internal services, and 5-minute checks for external sites.

Key Takeaways

  • Run louislam/uptime-kuma:2 with port 3001 and ./data:/app/data on local disk. The latest tag is deprecated and still means version 1.
  • Choose SQLite at first setup unless you already know you want MariaDB; there is no supported conversion later.
  • Start with the reverse proxy, DNS, NAS and two or three key applications, plus one external baseline check.
  • Set up at least two notification channels, and use “Apply on all existing monitors” so none are left silent.
  • localhost inside the container is the container. Monitor host services by LAN IP or host.docker.internal.
  • The Docker socket gives container monitoring and root-equivalent access. Use it knowingly, and keep the dashboard off the internet if you do.
  • Back up the data directory before every upgrade; the v1 to v2 migration is one way.

Related Guides

If you found this useful, these guides continue the journey:

The RTM Essential Stack - Gear I Actually Use

Enjoyed this guide?

New articles on Linux, homelab, cloud, and automation every 2 days. No spam, unsubscribe anytime.

Scroll to Top