mirror of
https://github.com/mr-vercetti/homeserver.git
synced 2025-01-18 16:25:35 +01:00
Add watchtower
This commit is contained in:
parent
a3c9738f2b
commit
ad655bdd47
@ -5,6 +5,14 @@ APPS_DIR=
|
|||||||
DATA_DIR=
|
DATA_DIR=
|
||||||
DOMAIN=
|
DOMAIN=
|
||||||
|
|
||||||
|
# Email notifications (watchguard)
|
||||||
|
EMAIL_FROM=
|
||||||
|
EMAIL_TO=
|
||||||
|
EMAIL_SERVER=
|
||||||
|
EMAIL_USER=
|
||||||
|
EMAIL_PW=
|
||||||
|
EMAIL_PORT=
|
||||||
|
|
||||||
# nextcloud-db
|
# nextcloud-db
|
||||||
DB_ROOT_PW=
|
DB_ROOT_PW=
|
||||||
DB_NAME=
|
DB_NAME=
|
||||||
|
27
docker/stacks/watchtower/watchtower.yml
Normal file
27
docker/stacks/watchtower/watchtower.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user