feat(watchtower): add watchtower stack

This commit is contained in:
2026-01-22 14:04:52 +01:00
parent 5c49f51422
commit ce17320c97
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
WATCHTOWER_CLEANUP="true"
WATCHTOWER_SCHEDULE="0 0 4 * * ?"
WATCHTOWER_NOTIFICATION_URL=""
# Update only containers without a com.centurylinklabs.watchtower.scope label
WATCHTOWER_SCOPE="none"

View File

@@ -0,0 +1,15 @@
services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: "${TZ:-Europe/Rome}"
WATCHTOWER_CLEANUP: "${WATCHTOWER_CLEANUP:-false}"
WATCHTOWER_SCHEDULE: "${WATCHTOWER_SCHEDULE:?Schedule not set}"
WATCHTOWER_SCOPE: "${WATCHTOWER_SCOPE:-}"
WATCHTOWER_NOTIFICATION_URL: "${WATCHTOWER_NOTIFICATION_URL:-}"
restart: always