My SABnzbd Setup#
This SABnzbd setup runs in a Docker container and is used for managing NZB downloads. It includes configurations for environment variables, volume mounts, and networking.
My Docker Compose Configuration#
services:
sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest # SABnzbd latest image
container_name: sabnzbd # Container name for identification
environment:
- PUID=0 # Set user ID (root user)
- PGID=0 # Set group ID (root group)
- TZ=Europe/London # Set timezone
volumes:
- ~/sabnzbd/config:/config # Mount SABnzbd configuration directory
- ~/media/downloads/complete:/downloads/complete # Optional: Mount complete downloads directory
- ~/media/downloads/incomplete:/downloads/incomplete # Optional: Mount incomplete downloads directory
- ~/media/downloads/nzbs:/downloads/nzbs # Mount NZB files directory
ports:
- "8080:8080" # Expose port 8080 for the SABnzbd web interface
restart: unless-stopped # Restart the container unless stopped manually
Using Docker Secrets for Environment Variables#
You can set any environment variable from a file by using a special prepend FILE__.
For example:
FILE__MYVAR=/run/secrets/mysecretvariable