Raja's Exocortex

Uptime Kuma

Uptime Kuma is a fancy self-hosted monitoring tool.

Uptime Kuma can efficiently monitor hundreds of services, SSL certificate expiry, etc. A far superior monitoring solution compared to older projects like PHP Server Monitor.

Set monitor history to 7 days to reduce sqlite bloat.

Deploy behind traefik.

# Filename: /srv/uptime-kuma.example.com/docker-compose.yaml
# UptimeKuma using sqlite

name: uptime-kuma-example-com

services:
  uptime-kuma:
    image: louislam/uptime-kuma:2
    container_name: uptime-kuma.example.com
    hostname: uptime-kuma
    restart: always

    mem_limit: 1G

    volumes:
      - ./data:/app/data

    labels:
      - com.centurylinklabs.watchtower.enable=true
      - traefik.enable=true
      - traefik.http.routers.uptime-kuma.rule=Host(`uptime-kuma.example.com`)
      - traefik.http.routers.uptime-kuma.tls=true
      - traefik.http.routers.uptime-kuma.tls.certresolver=lets-encrypt