Tutorials

Hands-on guides and configuration examples.

Configuration library · scripts and downloads ↗

Install and configure Uptime Kuma on Debian 13

Uptime Kuma checks service availability and alerts you when a check fails or recovers.

This guide runs Uptime Kuma 2 with Docker Compose on Debian 13, using local SQLite storage and a web interface reached through SSH.

You will create an HTTPS monitor, simulate a failure on a test service and back up your settings.

  1. Create the Compose file

    Install Docker and Compose on Debian 13. Create ~/uptime-kuma on a local disk and save this block to compose.yaml. The :2 tag tracks the stable v2 branch on the next pull.

    compose.yaml
    services:
      uptime-kuma:
        image: louislam/uptime-kuma:2
        restart: unless-stopped
        ports:
          - "127.0.0.1:3001:3001"
        volumes:
          - ./data:/app/data

    The data directory contains the database and settings. Keep it on a local filesystem. Backup archives can be copied to a NAS.

  2. Start Kuma and create the account

    From ~/uptime-kuma, validate the configuration and start the service. Open http://127.0.0.1:3001 on the host or use the SSH tunnel in the next step.

    Terminal
    sudo docker compose config --quiet && sudo docker compose up -d
    sudo docker compose ps
    sudo docker compose logs --tail=50 uptime-kuma

    On first boot, choose SQLite if prompted for a database type. Create an administrator account with a unique password.

  3. Open the dashboard from your computer

    On your computer, open the tunnel with your SSH username and server address. Leave the terminal open and visit http://127.0.0.1:3001 in your browser.

    Terminal
    ssh -N -L 127.0.0.1:3001:127.0.0.1:3001 utilisateur@IP_DU_SERVEUR

    Port 3001 listens on the server’s loopback interface. If you use a reverse proxy, configure HTTPS and pass through WebSocket connections.

  4. Create an HTTP(S) monitor

    In Add New Monitor, choose HTTP(s), give it a name and enter a URL reachable from Kuma’s container. A portfolio example is https://galaup.tech/fr.

    • Start with a 60-second interval and one retry before alerting. Save the monitor and check that its state changes to Up.
    • Use a TCP monitor on port 22 to check an SSH port. A Ping monitor checks only the host’s ICMP response. Use HTTP(s) to verify a web service.
    • For a Docker service, use its name if both containers share a Docker network, or an address reachable from Kuma. In Kuma, 127.0.0.1 points to the container itself.
  5. Configure a notification and simulate an outage

    In Settings → Notifications, add a channel such as Discord webhook or SMTP email. Use Test, confirm delivery, then save and attach the channel to your test monitor.

    • On another lab VM reachable from Kuma, run the command below in an empty temporary directory. Replace the example IP with that VM’s private address and allow port 8088 from Kuma during the test.
    • Create an HTTP(s) monitor for http://192.168.50.30:8088/, adapt the IP and wait for Up. Stop the test server with Ctrl+C. After the configured retries, check for the Down notification.
    • Start the test server again, wait for Up and check the recovery notification. The Test button checks delivery. This simulated outage also verifies the monitor.
    Terminal
    python3 -m http.server 8088 --bind 192.168.50.30
  6. Create a status page

    In Status Pages, create a page with the homelab slug. Add the monitors you want to show and save it. Open /status/homelab in your browser through the tunnel.

    A status page displays the services you add. If you publish it later, review the names and other visible information in a private browser window.

  7. Back up and update Kuma

    From ~/uptime-kuma, stop Kuma while copying SQLite and the other files. This block creates a private archive in the parent directory and restarts Kuma afterward.

    • Copy the archive to separate storage. It may contain notification secrets. Check that the archive is readable and test restoration in a separate directory with a different host port. Stop the test copy afterward to avoid duplicate checks.
    • After a backup, update with sudo docker compose pull followed by sudo docker compose up -d. Check monitor status and notification delivery after the restart.
    Terminal
    (
      umask 077
      sudo docker compose stop uptime-kuma || exit 1
      trap 'sudo docker compose start uptime-kuma' EXIT
      sudo tar -czf - compose.yaml data > "../uptime-kuma-$(date +%Y%m%d-%H%M%S).tar.gz"
    )
Official Uptime Kuma documentation ↗