Con Watchtower mantendremos actualizados nuestros docker, e informarnos ya sea por telegram o email cuando se actualizan:
version: '3.3' services: watchtower: image: containrrr/watchtower container_name: watchtower restart: unless-stopped volumes: - '/var/run/docker.sock:/var/run/docker.sock' environment: - TZ=America/Argentina/Buenos_Aires - WATCHTOWER_LIFECYCLE_HOOKS=1 - WATCHTOWER_NOTIFICATIONS=shoutrrr - WATCHTOWER_NOTIFICATION_URL=telegram://$BOT_TOKEN@telegram/?channels=$CHAT_ID - WATCHTOWER_NOTIFICATIONS=email - WATCHTOWER_NOTIFICATION_EMAIL_FROM=fromaddress@gmail.com - WATCHTOWER_NOTIFICATION_EMAIL_TO=toaddress@gmail.com - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587 - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=fromaddress@gmail.com - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=app_password - WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 # Elimina imagenes viejas para ganar espacio - WATCHTOWER_CLEANUP=True # scheduler personalizado - WATCHTOWER_SCHEDULE="0 0 */5 * * *" # scheduler cada 86400 segundos (1 dia) (valor por defecto) - WATCHTOWER_POLL_INTERVAL=86400
Mas info: https://containrrr.dev/watchtower/arguments/