Sabnzbd in a Docker Container on a Synology DiskStation - synology-user-git/Synology-DiskStation-and-Docker GitHub Wiki
Guide to set up sabnzbd+ in with Docker on a Synology NAS
Introduction
This wiki will detail the installation and setup of a sabnzbd+ Docker container on a compatible model Synology DiskStation.
Locating, downloading, setting up and launching the Docker container
- Install Docker through the DSM Package Center > Utilities > Docker
- Start Docker
- Go the Registry tab and search for "sabnzbd"
- Select the Docker container, then press the "Download" button to download. Downloading the container image will depend on the internet connection speed (400MB to 1000MB in size).
- Click the "Image" tab, then select the image for the docker container and click the "Launch" button.
- Under "General Settings" type in the container name to be used and check the box for "Enable auto-restart". This will restart the container after a reboot on the DiskStation.
- Under "Volume" add the folders on the DiskStation host to be accessible to the Docker container.
- choose the folder(s) on the DiskStation host, and type the "Mount path" that will be visible inside the Docker container.
- for my set up, I chose two separate locations on the host: * a location to contain the config files for the sabnzbd container * a location for all downloads, which will be shared with any other containers (Sonarr, SickBeard, etc)
- Under "Port Settings", configure the Local and Container ports
- within the sabnzbd container the defaults are already assigned 8080 and 9090 (standard and https, respective)
- I recommend assigning a Local Port at this stage rather than leaving it as "Auto"
- Under "Environment" we want to add a few variables:
- variable = TZ, Value = local-time-zone
- variable = PUID, Value = 1000
- the Value above will be based on the user account that has read/write permissions for the mounted Volumes noted above.
- to get this user ID value, SSH in to the DiskStation and type the command
id
, which will output both the group ID and the user ID
- variable = PGID, Value = 100
- Launch image and wait for the container to complete the initial start up (~1 minute), or go into the details of the sabnzbd Docker container and check the "Log" tab to determine when the instance of sabnzbd is running.
Configuring sabnzbd settings
Using a browser, connect to the sabnzbd container with the assigned Local Port (http://DiskStation:8080/sabnzbd
) and follow the standard configuration of sabnzbd v1.0+. After completing the sabnzbd wizard, finish the configuration.
- Navigate to "Folders" and perform the following changes:
- select a "Temporary Download Folder", this should ideally be located in the mounted "Download" volume
- select a "Completed Download Folder", this should also be located within the mounted volume described above
- use 777 for "Permissions for completed downloads"
- select a "Watched Folder", again located within the mounted volume
- if using SickBeard, select a "Post-Processing Scripts Folder" that contains scripts. This can be located in the "config" mounted volume.
- click to save changes
- Add additional servers if desired
- Add "Categories"
- "tv" is the default for Sonarr (and SickBeard)
- for the "Folder/Path" choose the "Completed Download Folder" described above. This folder will be watched by Sonarr (or SickBeard)
- if using SickBeard, use the "sabToSickBeard.py" script from the drop menu
- Additional tweaks and personal preferences can be changed in "Switches"