fix: remove persistent Watchtower containers — replaced with cron run-once on jellyfin host

This commit is contained in:
2026-05-24 11:49:15 +00:00
parent b7d5949ef4
commit bb81353a46
+5 -108
View File
@@ -55,111 +55,8 @@ services:
environment: environment:
- TZ=America/Chicago - TZ=America/Chicago
# Main watchtower — handles unscoped containers (flaresolverr, portainer-agent) # NOTE: Watchtower is NOT managed as a persistent container here.
# Runs at 4:09 AM — last in sequence, after all lscr.io checks are done # Updates are handled by cron jobs on the host that run Watchtower in
watchtower: # --run-once mode, one container at a time, at staggered times.
image: containrrr/watchtower # See /usr/local/bin/watchtower-update.sh and crontab for jgitta user.
container_name: watchtower # This avoids Watchtower's multi-instance detection killing concurrent instances.
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/jgitta/.docker/config.json:/config.json:ro
environment:
- TZ=America/Chicago
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_TO=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.fastmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=2l79229z6r4y8x8y
- WATCHTOWER_NOTIFICATIONS_LEVEL=info
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 9 4 * * *
- WATCHTOWER_ROLLING_RESTART=true
- WATCHTOWER_ROLLING_RESTART_TIMEOUT=30s
- WATCHTOWER_HTTP_API_PERIODIC_POLLS=false
- WATCHTOWER_CONTAINER_WAIT_BEFORE_STOPPING=60s
labels:
- "com.centurylinklabs.watchtower.enable=false"
# Scoped watchtower for radarr only — runs first at 4:00 AM
watchtower-radarr:
image: containrrr/watchtower
container_name: watchtower-radarr
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/jgitta/.docker/config.json:/config.json:ro
environment:
- TZ=America/Chicago
- WATCHTOWER_SCOPE=radarr
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_TO=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.fastmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=2l79229z6r4y8x8y
- WATCHTOWER_NOTIFICATIONS_LEVEL=info
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 0 4 * * *
- WATCHTOWER_ROLLING_RESTART=true
- WATCHTOWER_ROLLING_RESTART_TIMEOUT=30s
- WATCHTOWER_CONTAINER_WAIT_BEFORE_STOPPING=60s
labels:
- "com.centurylinklabs.watchtower.enable=false"
# Scoped watchtower for sonarr only — runs at 4:03 AM
watchtower-sonarr:
image: containrrr/watchtower
container_name: watchtower-sonarr
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/jgitta/.docker/config.json:/config.json:ro
environment:
- TZ=America/Chicago
- WATCHTOWER_SCOPE=sonarr
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_TO=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.fastmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=2l79229z6r4y8x8y
- WATCHTOWER_NOTIFICATIONS_LEVEL=info
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 3 4 * * *
- WATCHTOWER_ROLLING_RESTART=true
- WATCHTOWER_ROLLING_RESTART_TIMEOUT=30s
- WATCHTOWER_CONTAINER_WAIT_BEFORE_STOPPING=60s
labels:
- "com.centurylinklabs.watchtower.enable=false"
# Scoped watchtower for prowlarr only — runs at 4:06 AM
watchtower-prowlarr:
image: containrrr/watchtower
container_name: watchtower-prowlarr
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/jgitta/.docker/config.json:/config.json:ro
environment:
- TZ=America/Chicago
- WATCHTOWER_SCOPE=prowlarr
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_TO=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.fastmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=jgitta@jgitta.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=2l79229z6r4y8x8y
- WATCHTOWER_NOTIFICATIONS_LEVEL=info
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 6 4 * * *
- WATCHTOWER_ROLLING_RESTART=true
- WATCHTOWER_ROLLING_RESTART_TIMEOUT=30s
- WATCHTOWER_CONTAINER_WAIT_BEFORE_STOPPING=60s
labels:
- "com.centurylinklabs.watchtower.enable=false"