110 words
1 minutes
Install Uptime Kuma with Docker for Simple Uptime Monitoring

Install Uptime Kuma with Docker for Simple Uptime Monitoring#

Discover how to install Uptime Kuma with Docker to monitor your websites and services. This guide walks you through the setup process step by step.

Docker Compose#

Create a folder named “uptime-kuma”:

mkdir uptime-kuma
cd uptime-kuma

Open compose.yml:

nano compose.yml

Edit compose.yml:

services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    volumes:
      - ./data:/app/data
    ports:
      - 11012:3001
    restart: unless-stopped

(Retrieved from Uptime Kuma GitHub on January 21, 2025)

Caddy#

Install Caddy:

apt install caddy
sudo systemctl enable caddy

Open Caddyfile:

nano /etc/caddy/Caddyfile

Edit Caddyfile:

example.com {
  route /status* {
    uri strip_prefix /status
    redir https://status.{host}{uri}
  }
}

status.example.com {
  reverse_proxy localhost:11012
  encode zstd gzip
}

Restart Caddy:

sudo systemctl restart caddy

Go to Uptime Kuma at https://status.example.com or at https://example.com/status if you prefer using a subpath.

Install Uptime Kuma with Docker for Simple Uptime Monitoring
https://blog.juyoun.gg/posts/en/2025/02/01/
Author
Jay
Published at
2025-02-01
License
CC BY