services: watchtower: image: containrrr/watchtower:latest container_name: watchtower hostname: watchtower mem_limit: 256m mem_reservation: 128m cpu_shares: 256 security_opt: - no-new-privileges=true read_only: true volumes: - /var/run/docker.sock:/var/run/docker.sock:ro environment: TZ: Europe/Rome WATCHTOWER_CLEANUP: true # Rimuove le vecchie immagini dopo l'aggiornamento WATCHTOWER_REMOVE_VOLUMES: false # Mantieni i volumi DOCKER_API_VERSION: 1.47 WATCHTOWER_INCLUDE_RESTARTING: true # Riavvia i contenitori dopo l'aggiornamento WATCHTOWER_INCLUDE_STOPPED: false # Non aggiornare i contenitori fermati WATCHTOWER_SCHEDULE: "0 3 * * * *" # Aggiorna ogni giorno alle 3 del mattino WATCHTOWER_LABEL_ENABLE: false WATCHTOWER_ROLLING_RESTART: true WATCHTOWER_TIMEOUT: 30s WATCHTOWER_LOG_FORMAT: pretty #WATCHTOWER_NOTIFICATION_URL: ntfy://:tuo_token@ntfy.emanuelegori.uno/watchtower #notifica via NTFY restart: unless-stopped