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

  1. Install Docker through the DSM Package Center > Utilities > Docker
  2. Start Docker
  3. Go the Registry tab and search for "sabnzbd" registry-search
  4. 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).
  5. Click the "Image" tab, then select the image for the docker container and click the "Launch" button.
  6. 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.
  7. 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)
  8. 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"
  9. 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
  10. 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.

  1. Navigate to "Folders" and perform the following changes:
    1. select a "Temporary Download Folder", this should ideally be located in the mounted "Download" volume
    2. select a "Completed Download Folder", this should also be located within the mounted volume described above
    3. use 777 for "Permissions for completed downloads"
    4. select a "Watched Folder", again located within the mounted volume
    5. if using SickBeard, select a "Post-Processing Scripts Folder" that contains scripts. This can be located in the "config" mounted volume.
    6. click to save changes
  2. Add additional servers if desired
  3. Add "Categories"
    1. "tv" is the default for Sonarr (and SickBeard)
    2. for the "Folder/Path" choose the "Completed Download Folder" described above. This folder will be watched by Sonarr (or SickBeard)
      1. if using SickBeard, use the "sabToSickBeard.py" script from the drop menu
  4. Additional tweaks and personal preferences can be changed in "Switches"