Update .env and compose.yaml for auto update scheduling and timezone support, add nzbhydra2

This commit is contained in:
Viren070
2025-02-06 21:47:03 +00:00
parent 98a3c0ee6c
commit c86635af96
2 changed files with 29 additions and 3 deletions
+9 -2
View File
@@ -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 <username> with your desired username.
+20 -1
View File
@@ -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