From bb81353a465d5b8c677fbbd30a73545f379a1373 Mon Sep 17 00:00:00 2001 From: Jozsef Gtta Date: Sun, 24 May 2026 11:49:15 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20persistent=20Watchtower=20conta?= =?UTF-8?q?iners=20=E2=80=94=20replaced=20with=20cron=20run-once=20on=20je?= =?UTF-8?q?llyfin=20host?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jellyfin/arr-stack/docker-compose.yml | 113 ++------------------------ 1 file changed, 5 insertions(+), 108 deletions(-) diff --git a/jellyfin/arr-stack/docker-compose.yml b/jellyfin/arr-stack/docker-compose.yml index 254efe5..ac91425 100644 --- a/jellyfin/arr-stack/docker-compose.yml +++ b/jellyfin/arr-stack/docker-compose.yml @@ -55,111 +55,8 @@ services: environment: - TZ=America/Chicago - # Main watchtower — handles unscoped containers (flaresolverr, portainer-agent) - # Runs at 4:09 AM — last in sequence, after all lscr.io checks are done - watchtower: - image: containrrr/watchtower - container_name: watchtower - 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" + # NOTE: Watchtower is NOT managed as a persistent container here. + # Updates are handled by cron jobs on the host that run Watchtower in + # --run-once mode, one container at a time, at staggered times. + # See /usr/local/bin/watchtower-update.sh and crontab for jgitta user. + # This avoids Watchtower's multi-instance detection killing concurrent instances.