Initial commit: Watchtower con schedule, cleanup y notificaciones

This commit is contained in:
2025-11-30 11:49:49 +01:00
parent fc7db813fe
commit 76d24327a1
4 changed files with 80 additions and 1 deletions

20
docker-compose.yaml Normal file
View File

@@ -0,0 +1,20 @@
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: always
environment:
- TZ=Europe/Madrid
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_STOPPED=false
- WATCHTOWER_SCHEDULE=0 0 3 * * *
# Notificaciones (ejemplos):
# - WATCHTOWER_NOTIFICATIONS=shoutrrr
# - WATCHTOWER_NOTIFICATION_URL=telegram://token@chatid
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --label-enable
# Etiqueta tus servicios para que watchtower los actualice:
# labels:
# - "com.centurylinklabs.watchtower.enable=true"