Compose-Examples/examples/watchtower/docker-compose.yml
LRVT 69b278b6fe
Update docker-compose.yml
add monitor mode env
2023-10-11 23:40:38 +02:00

27 lines
1.1 KiB
YAML

version: "3.9"
services:
watchtower:
container_name: watchtower
hostname: watchtower
environment:
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=watchtower@example.com
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=MyStrongSmtpLoginPassword
#- WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower@example.com
#- WATCHTOWER_NOTIFICATION_EMAIL_TO=john.doe@example.com
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.google.com
#- WATCHTOWER_NOTIFICATIONS=email
#- WATCHTOWER_MONITOR_ONLY=true
- WATCHTOWER_SCHEDULE=0 0 6 * * * # requires a go cron syntax of 6 space-separated fields; see https://containrrr.dev/watchtower/arguments/#scheduling
- WATCHTOWER_CLEANUP=true # remove unused images afterwards
image: containrrr/watchtower:latest
labels:
com.centurylinklabs.watchtower: true
restart: always
network_mode: "host"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
working_dir: /