homeserver/docker/stacks/watchtower/watchtower.yml
2022-02-06 21:49:17 +00:00

26 lines
868 B
YAML

services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
networks:
- watchtower
environment:
- TZ=${TIMEZONE}
- WATCHTOWER_MONITOR_ONLY=true
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 1 * * MON
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=${EMAIL_FROM}
- WATCHTOWER_NOTIFICATION_EMAIL_TO=${EMAIL_TO}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=${EMAIL_SERVER}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=${EMAIL_USER}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=${EMAIL_PW}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=${EMAIL_PORT}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
networks:
watchtower:
name: watchtower