version: '3.7' services: watchtower: image: containrrr/watchtower command: --monitor-only --cleanup -i 28800 --include-stopped --label-enable --stop-timeout 30s #--debug --monitor-only environment: - TZ=${TZ} - WATCHTOWER_NOTIFICATIONS=email - WATCHTOWER_NOTIFICATION_EMAIL_FROM=admin@solusar.de - WATCHTOWER_NOTIFICATION_EMAIL_TO=gorden@solusar.de - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=62.75.247.110 - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=admin@solusar.de - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=#gentoo# - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587 #labels: # com.centurylinklabs.watchtower.enable: "true" volumes: - /var/run/docker.sock:/var/run/docker.sock restart: always deploy: mode: replicated replicas: 1 placement: constraints: - node.labels.watchtower == true