📥 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 Configuration Details#
🌍 Environment Variables#
Variable | Description |
---|---|
PUID=0 | User ID for permission management (root user) |
PGID=0 | Group ID for permission management (root group) |
TZ=Europe/London | Timezone configuration |
📂 Volume Mounts#
Volume | Description |
---|---|
~/sabnzbd/config:/config | Mounts SABnzbd configuration data for persistence |
~/media/downloads/complete:/downloads/complete | Optional: Mounts the complete downloads directory |
~/media/downloads/incomplete:/downloads/incomplete | Optional: Mounts the incomplete downloads directory |
~/media/downloads/nzbs:/downloads/nzbs | Mounts NZB files directory for SABnzbd |
🔗 Networking#
Port Mapping | Function |
---|---|
8080:8080 | SABnzbd web interface for managing NZB downloads |
📜 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