Add watchtower

This commit is contained in:
mr-vercetti 2022-02-04 22:47:06 +00:00
parent a3c9738f2b
commit ad655bdd47
2 changed files with 35 additions and 0 deletions

View File

@ -5,6 +5,14 @@ APPS_DIR=
DATA_DIR=
DOMAIN=
# Email notifications (watchguard)
EMAIL_FROM=
EMAIL_TO=
EMAIL_SERVER=
EMAIL_USER=
EMAIL_PW=
EMAIL_PORT=
# nextcloud-db
DB_ROOT_PW=
DB_NAME=

View File

@ -0,0 +1,27 @@
version: '3.7'
services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
networks:
- watchtower
environment:
- TZ=${TIMEZONE}
- WATCHTOWER_MONITOR_ONLY=true
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 1 * * MON
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=${EMAIL_FROM}
- WATCHTOWER_NOTIFICATION_EMAIL_TO=${EMAIL_TO}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=${EMAIL_SERVER}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=${EMAIL_USER}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=${EMAIL_PW}
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=${EMAIL_PORT}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
networks:
watchtower:
name: watchtower