summaryrefslogtreecommitdiff
path: root/watchtower/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'watchtower/docker-compose.yml')
-rw-r--r--watchtower/docker-compose.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/watchtower/docker-compose.yml b/watchtower/docker-compose.yml
new file mode 100644
index 0000000..73a1c60
--- /dev/null
+++ b/watchtower/docker-compose.yml
@@ -0,0 +1,19 @@
+services:
+ watchtower:
+ image: nickfedor/watchtower
+ container_name: watchtower
+ restart: unless-stopped
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ environment:
+ - WATCHTOWER_SCHEDULE=0 0 4 * * 0 # Sundays 4am (6-field cron)
+ - WATCHTOWER_CLEANUP=true # remove old images after update
+ - WATCHTOWER_INCLUDE_RESTARTING=true
+ - WATCHTOWER_NOTIFICATIONS=email
+ - WATCHTOWER_NOTIFICATION_EMAIL_FROM=${SMTP_FROM}
+ - WATCHTOWER_NOTIFICATION_EMAIL_TO=${SMTP_TO}
+ - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=${SMTP_SERVER}
+ - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=${SMTP_PORT}
+ - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=${SMTP_USER}
+ - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=${SMTP_PASS}
+ - WATCHTOWER_NOTIFICATION_EMAIL_USE_SSL_SMTP=true # for STARTTLS on 587