2-minute UptimeKuma setup using Traefik & docker-compose (self-hosted UptimeRobot alternative)
This config is based on our previous post Simple uptime-kuma docker-compose setup: Self-hosted UptimeRobot alternative and our Traefik configuration with Cloudflare wildcard certs (seeĀ Simple Traefik docker-compose setup with Lets Encrypt Cloudflare DNS-01 & TLS-ALPN-01 & HTTP-01 challenges)
services:
kuma:
image: 'louislam/uptime-kuma:1'
volumes:
- './uptimekuma_data:/app/data'
labels:
- "traefik.enable=true"
- "traefik.http.routers.uptimekuma-mydomain.rule=Host(`uptimekuma.mydomain.com`)"
- "traefik.http.routers.uptimekuma-mydomain.tls.certResolver=cloudflare-ec384"
- "traefik.http.routers.uptimekuma-mydomain.tls.domains[0].main=mydomain.com"
- "traefik.http.routers.uptimekuma-mydomain.tls.domains[0].sans=*.mydomain.com"
- "traefik.http.services.uptimekuma-mydomain.loadbalancer.server.port=3001"
See Create a systemd service for your docker-compose project in 10 seconds for more inforamtion on how to create a systemd service to autostart UptimeKuma.