services: watchtower: image: containrrr/watchtower:latest container_name: watchtower labels: - "com.centurylinklabs.watchtower.enable=true" volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - TZ=Europe/Prague - DOCKER_API_VERSION=1.44 # <<< DŮLEŽITÉ – přidáno - WATCHTOWER_MONITOR_ONLY=false - WATCHTOWER_SCHEDULE=0 0 8 * * * - WATCHTOWER_CLEANUP=true - WATCHTOWER_NOTIFICATIONS=email - WATCHTOWER_NOTIFICATION_EMAIL_FROM=admin@example.com - WATCHTOWER_NOTIFICATION_EMAIL_TO=admin@example.com - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.example.com - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=CHANGE_ME - WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG=Server Container Updates - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=admin@example.com - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=465 - WATCHTOWER_LABEL_ENABLE=true restart: unless-stopped