30 lines
841 B
YAML
30 lines
841 B
YAML
|
version: '3.7'
|
||
|
|
||
|
# https://hub.docker.com/r/containrrr/watchtower
|
||
|
# https://containrrr.dev/watchtower/
|
||
|
|
||
|
services:
|
||
|
watchtower:
|
||
|
image: containrrr/watchtower
|
||
|
container_name: watchtower
|
||
|
restart: "${RESTART:-no}"
|
||
|
hostname: watchtower
|
||
|
domainname: ${BASE_DOMAIN}
|
||
|
environment:
|
||
|
# for testing:
|
||
|
- WATCHTOWER_MONITOR_ONLY=true
|
||
|
|
||
|
- TZ=${TIMEZONE}
|
||
|
- WATCHTOWER_SCHEDULE=0 0 4 * * *
|
||
|
|
||
|
- WATCHTOWER_NOTIFICATIONS=email
|
||
|
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower@${BASE_DOMAIN}
|
||
|
- WATCHTOWER_NOTIFICATION_EMAIL_TO=admin@${BASE_DOMAIN}
|
||
|
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=post.${BASE_DOMAIN}
|
||
|
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25
|
||
|
- WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
networks:
|
||
|
- mail
|