# NZBGet - Usenet letöltő, nagyon kevés erőforrásból # Domain: ${SUBDOMAIN}.${DOMAIN} # Database: none (its settings and queue are files in the config volume) # RAM: ~6M idle (mem_limit: 512M, of which 100M is the article cache) | Pi-compatible: Yes (amd64, armv7, arm64) # # WHY A USENET CLIENT AT ALL (operator request 2026-10-12, R-988): Radarr, Sonarr and Jellyseerr can # hand a job to a Usenet client exactly as they hand one to a torrent client, and until today the # catalog had no Usenet client. NZBGet is the light one of the pair; SABnzbd is the full one. # # THE HOUSEHOLD MUST BRING A PAID USENET PROVIDER. Usenet is not a peer-to-peer swarm: the articles # live on a provider's servers and access is a subscription. No provider is configured here and none # can be - the server, port, username and password are the household's own. The app page says so # before the install, and the first step after it is entering them. With no provider the app starts, # serves its page and says so itself: "[ERROR] No servers are configured". # # NO INBOUND PORT NEEDED, and that is not a compromise here: a Usenet client only ever makes OUTGOING # connections (NNTP, usually 563 with TLS). The torrent pair loses incoming peers behind the box's # closed ports; this app loses nothing at all. # # FIRST ADMIN (class 1 - generated by us at install, FIRST-ADMIN.md). The image passes # `-o ControlUsername=... -o ControlPassword=...` from NZBGET_USER/NZBGET_PASS on the command line at # EVERY start (read in its entrypoint on the bench 2026-10-12), so the generated password is # re-applied rather than seeded once. Measured: the documented default `nzbget / tegbzn6789` is # refused (401), the generated password is accepted (200), six wrong tries lock nobody out. # # THE SEEDED CONFIG, and why each line is there. The image copies its shipped nzbget.conf on the # first start and that file is wrong for this box in five ways, every one measured on the bench: # * ControlPassword - the shipped file carries the WELL-KNOWN DEFAULT in plain text. The command # line overrides it for the running app, so the default does not work - but the # file keeps advertising it, and the app's OWN CLI (`nzbget -L`, client mode) # reads the FILE and so cannot talk to its own server ("No response or invalid # response", measured). Writing the generated password into the file fixes both. # NOTE the variable names: the seed reads NZBGET_USER/NZBGET_PASS, the ones # that exist INSIDE the container. NZB_ADMIN_PASSWORD is a compose variable # and is empty there - the first attempt used it and seeded an EMPTY password # (measured on the bench: the app stayed protected, because the command line # wins, and the app's own CLI stayed broken, which is how it was noticed). # * MainDir - shipped `/downloads`, which puts the QUEUE, the nzb files, the temp dir and # the log on the household's DRIVE. The queue is app state: it belongs on the # NVMe volume that gets backed up, not in the folder classified "optional, # fetchable again". Only the finished files and the half-assembled ones stay on # the drive. # * UpdateCheck - shipped `stable`, which asks nzbget.com for new versions. The box updates # apps itself from the catalog, so the app never needs to look. # * ArticleCache - shipped `0`, and the app warns about it itself on every start # ("'ArticleCache' is disabled. Enabling it is recommended to reduce disk # fragmentation"). 100 MB, inside the 512M limit. # * WriteBuffer - shipped `0`, and the app warns about that too ("often too small and # inefficient"). 1 MB. # The seed happens ONCE, only when the app has no config of its own, so a household that changes any # of it keeps the change across a restart and an update. # # Environment variables: # DOMAIN - Your domain (e.g., demo-felhom.eu) # SUBDOMAIN - The name this app answers on # HDD_PATH - The drive the downloads go to # NZB_ADMIN_PASSWORD - generated at install (deploy_fields), re-applied at every start # # Folders: the finished downloads in ${USERDATA_PATH}/media/nzbget/completed and the half-assembled # ones in .../intermediate (the household sees both in the file browser); the settings, the queue and # the nzb files in the named volume nzbget_config (NVMe). services: nzbget: image: nzbgetcom/nzbget:v26.3 container_name: nzbget restart: unless-stopped environment: - TZ=Europe/Budapest - PUID=1000 - PGID=1000 - NZBGET_USER=admin - NZBGET_PASS=${NZB_ADMIN_PASSWORD} entrypoint: - /bin/sh - -c - | CONF=/config/nzbget.conf mkdir -p /config/data if [ ! -f "$$CONF" ]; then cp /app/nzbget/share/nzbget/nzbget.conf "$$CONF" sed -i \ -e "s|^MainDir=.*|MainDir=/config/data|" \ -e "s|^DestDir=.*|DestDir=/downloads/completed|" \ -e "s|^InterDir=.*|InterDir=/downloads/intermediate|" \ -e "s|^NzbDir=.*|NzbDir=/config/data/nzb|" \ -e "s|^QueueDir=.*|QueueDir=/config/data/queue|" \ -e "s|^TempDir=.*|TempDir=/config/data/tmp|" \ -e "s|^ScriptDir=.*|ScriptDir=/config/data/scripts|" \ -e "s|^LogFile=.*|LogFile=/config/data/nzbget.log|" \ -e "s|^UpdateCheck=.*|UpdateCheck=none|" \ -e "s|^ArticleCache=.*|ArticleCache=100|" \ -e "s|^WriteBuffer=.*|WriteBuffer=1024|" \ -e "s|^ControlUsername=.*|ControlUsername=$${NZBGET_USER}|" \ -e "s|^ControlPassword=.*|ControlPassword=$${NZBGET_PASS}|" \ "$$CONF" fi # The image's own entrypoint chowns /config and /downloads, but neither recursively, so the # state directory this template introduces is handed over here. chown -R 1000:1000 /config/data 2>/dev/null || true exec /entrypoint.sh volumes: - nzbget_config:/config - ${USERDATA_PATH}/media/nzbget:/downloads networks: - traefik-public deploy: resources: limits: memory: 512M healthcheck: # THE IMAGE HAS NO curl (measured on the bench 2026-10-12: only busybox wget, python3 and # openssl), so the curl families in REUSE.md do not apply - this is the BusyBox/wget one. # Proven in both directions on the bench: rc 0 against the running app, rc 1 against a port # nothing serves. It depends on the app's shipped `AuthorizedIP=127.0.0.1`, which lets a # request from inside the container through without a password; that line is left alone and the # probe going healthy is what pins it. test: ["CMD", "wget", "-q", "-O", "/dev/null", "--tries=1", "http://127.0.0.1:6789/"] interval: 30s timeout: 5s retries: 3 start_period: 30s labels: - "traefik.enable=true" - "traefik.http.routers.nzbget.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" - "traefik.http.routers.nzbget.entrypoints=websecure" - "traefik.http.routers.nzbget.tls=true" - "traefik.http.routers.nzbget.tls.certresolver=letsencrypt" - "traefik.http.services.nzbget.loadbalancer.server.port=6789" volumes: nzbget_config: networks: traefik-public: external: true