diff --git a/.env b/.env index 7e827b3..ed19841 100644 --- a/.env +++ b/.env @@ -63,8 +63,15 @@ LETSENCRYPT_EMAIL= ZILEAN_POSTGRES_PASSWORD=postgres ZILEAN_POSTGRES_USERNAME=postgres -# The interval in seconds to check for updates for all containers. Default is 1 day. -AUTO_UPDATE_INTERVAL=86400 +# The cron schedule for auto updates. +# https://pkg.go.dev/github.com/robfig/cron@v1.2.0#hdr-CRON_Expression_Format +AUTO_UPDATE_SCHEDULE=0 0 6 * * * # This will run the auto update at 6am every day +# Timezone used for auto updates, and other services that require a timezone e.g. Prowlarr, Jackett, etc. +# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones +TZ=UTC + +# FOR NZBHYDRA2 ONLY: +# NZBHYDRA2_HOSTNAME= # FOR SEANIME ONLY: # To get the hash for SEANIME_HASHED_PASSWORD, run the following command in your terminal, replacing with your desired username. diff --git a/compose.yaml b/compose.yaml index f6ec5bc..e9a6f3f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -490,12 +490,31 @@ services: image: containrrr/watchtower container_name: watchtower restart: unless-stopped - command: --interval ${AUTO_UPDATE_INTERVAL:-86400} environment: + - TZ=${TZ:-UTC} - WATCHTOWER_CLEANUP=true + - WATCHTOWER_SCHEDULE=${AUTO_UPDATE_SCHEDULE:-0 0 6 * * *} # Run at 6am daily volumes: - /var/run/docker.sock:/var/run/docker.sock + # nzbhydra2: + # container_name: nzbhydra2 + # image: ghcr.io/hotio/nzbhydra2:latest + # expose: + # - 5076 + # environment: + # - PUID=1000 + # - PGID=1000 + # - UMASK=002 + # - TZ=${TZ:-UTC} # Add timezone support + # volumes: + # - ./nzbhydra_config:/config + # restart: unless-stopped + # labels: + # - "traefik.enable=true" + # - "traefik.http.routers.nzbhydra2.rule=Host(`${NZBHYDRA2_HOSTNAME}`)" + # - "traefik.http.routers.nzbhydra2.entrypoints=websecure" + # - "traefik.http.routers.nzbhydra2.tls.certresolver=myresolver" # seanime: # image: umagistr/seanime # container_name: seanime