Docker - Kuma Monitoring
Intro
got a hint to try a nice monitoring tool. kuma. https://github.com/louislam/uptime-kuma
pre-condition
- you have traefik running and a wildcard certificate for a domain. see the previous posts …
.env
we need few variables, edit the touch section appropriately
cat << 'EOF' > .env
# touch
HOST="kuma"
DOMAIN="your.domain"
PORT=3001
# don't touch
SERVICE="${HOST}"
EOF
docker-compose.yml
… and the docker compose file …
cat << 'EOF' > docker-compose.yml
version: '3.3'
networks:
traefik:
external: true
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: always
volumes:
- ./data_kuma:/app/data
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.${SERVICE}.rule=Host(`${HOST}.${DOMAIN}`)"
- "traefik.http.routers.${SERVICE}.tls=true"
- "traefik.http.services.${SERVICE.loadBalancer.server.port=3001"
EOF
Run the Service
docker compose up
and wait at least 30 Seconds.