mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
Update .env and compose.yaml for auto update scheduling and timezone support, add nzbhydra2
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user