Monitoring
Uptime Kuma
Link: https://github.com/louislam/uptime-kuma
-
does not work on RPi ?
-
How to install:
sudo docker run -d --restart=always -p 3021:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma -
or:
version: "2" services: uptime-kuma: image: louislam/uptime-kuma container_name: uptime-kuma environment: - TZ=Europe/Vienna volumes: - uptime-kuma:/app/data ports: - 3021:3001 restart: unless-stopped volumes: uptime-kuma:
monitoring
- https://github.com/nicolargo/glances
watchtower - automatic imagedoimage update
- https://containrrr.dev/watchtower/
- Use cases: https://www.howtogeek.com/devops/how-to-automate-docker-container-updates-with-watchtower/
Running On-Demand
Watchtower is designed to run as a long-lived daemon that continually monitors containers for updates. Sometimes you might want to manually check for new images on-demand. You can do this with the --run-once command flag:
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower --run-once
This will perform a single update attempt for all your running containers. The Watchtower container will then stop and be removed.
restirct to containers
you can restrict watchtower to monitoring a subset of the running containers by specifying the container names as arguments when launching watchtower.
docker run --rm \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower --run-once \
portainer pihole
monitoring
docker run -d --name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower --monitor-only
use notification
docker run -d --name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower --monitor-only --notification-url=telegram://token@telegram?chats=channel-1[,chat-id-1,...]
docker run --rm --name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower --monitor-only --run-once --notification-url=telegram://61...85:AAHa.....mn8@telegram?chats=-922625204