2023-02-15 21:45:31 +00:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
watchtower:
|
|
|
|
container_name: watchtower
|
|
|
|
hostname: watchtower
|
|
|
|
environment:
|
2024-01-14 20:04:06 +00:00
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=${SMTP_PORT:-587}
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=${SMTP_USER:-smtpuser}
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=${SMTP_PASS:-smtppass}
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_FROM=${SMTP_MAIL_FROM:-watchtower@example.com}
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_TO=${SMTP_MAIL_TO:-watchtower@example.com}
|
|
|
|
#- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=${SMTP_SERVER:-smtp.google.com}
|
|
|
|
#- WATCHTOWER_HTTP_API_TOKEN=${API_TOKEN:-SecureApiToken}
|
2023-02-15 21:45:31 +00:00
|
|
|
#- WATCHTOWER_NOTIFICATIONS=email
|
2023-10-11 21:40:38 +00:00
|
|
|
#- WATCHTOWER_MONITOR_ONLY=true
|
2023-02-19 13:19:15 +00:00
|
|
|
- WATCHTOWER_SCHEDULE=0 0 6 * * * # requires a go cron syntax of 6 space-separated fields; see https://containrrr.dev/watchtower/arguments/#scheduling
|
2023-02-15 21:45:31 +00:00
|
|
|
- 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: /
|