This repository has been archived on 2024-05-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

27 lines
954 B
YAML

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=mail.solusar.de
- 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
command: --interval 3600
restart: always
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.labels.watchtower == true