Watchtower mit automatischer Bereinigung
version: "3"
services:
watchtower:
container_name: watchtower
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
environment:
- TZ=Europe/Berlin
- WATCHTOWER_LIFECYCLE_HOOKS=1 # Enable pre/post-update scripts
command: --cleanup --run-once --monitor-only --schedule "0 0 4 * * *"