5a95010f35
- Switch to shoutrrr notification URL format - Use extra_hosts to resolve smtp.gmail.com to local tunnel (192.168.31.222:1587) - Add URL-encoded SMTP credentials for shoutrrr URL compatibility - SSH tunnel: NAS:1587 -> server2 -> smtp.gmail.com:587
21 lines
647 B
YAML
21 lines
647 B
YAML
services:
|
|
watchtower:
|
|
image: containrrr/watchtower
|
|
container_name: watchtower
|
|
restart: unless-stopped
|
|
environment:
|
|
WATCHTOWER_LABEL_ENABLE: "true"
|
|
WATCHTOWER_SCHEDULE: "0 0 4 * * *"
|
|
WATCHTOWER_CLEANUP: "true"
|
|
WATCHTOWER_NOTIFICATIONS: shoutrrr
|
|
WATCHTOWER_NOTIFICATION_URL: "smtp://${SMTP_USER_ENCODED}:${SMTP_PASSWORD_ENCODED}@smtp.gmail.com:1587/?from=${SMTP_FROM}&to=${SMTP_TO}"
|
|
extra_hosts:
|
|
- "smtp.gmail.com:192.168.31.222"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|