In the guide I will be taking you through the steps to download and setup NZBGet in Docker on a Synology NAS, this makes some assumptions that you know your way around the DSM interface.
Onto the Guide
The first step is to download the NZBGet image, we will be using the one provided by Linuxserver.io and can be found within the Docker interface on the registry tab.
You will just need to enter NZBGet as the search term and the top result should be the Linuxserver image.
Right click on the image and click Download, you can track the progress in the image tab
PGID and PUID
In the previous versions of these guides I used a long winded approach to getting your ID information, I have since found a much easier approach.
You will need to SSH into your Diskstation using ‘Putty’ or an equivalent program.
Open up Putty, the only thing you need to enter is the IP address of your NAS and select the SSH radio button.
Click on open, you will get a prompt asking if you trust the key, if this is the first time you have used SSH, just press OK or accept.
Enter the login information for you Synology user account, you will not be able to see the password as you type it, I use a very long one so I just paste it in from my password manager. (right click acts as paste in putty)
Once logged in type ‘id’ without the quotes and this will show your UID(aka PUID) which in my case is 1026 and the GID(aka PGID) which is 101 for an administrator
Setting up the NZBget container
Back in the image menu highlight the NZBGet container and click on Launch. This will open up the setup wizard.
On the first screen I am not making any changes as I do not need to limit the resources on my 1815+ as I have 6GB of RAM, just go straight into ‘Advanced Settings’.
Tick the ‘Enable Auto Restart’ this will ensure the container starts up automatically if you reboot.
Then click on volumes, we are now going to set up the shares we want to mount. NZBget only needs access to two folders.
Under the ‘Docker’ share create a folder called ‘NZBGet’ this is important as your configuration files will be stored here. We do the same thing for all the other guides.
And then also add your downloads folder, this can be where ever you want to download your files. It should look like the screenshot below.
Next click on Port Settings, we can now setup which port we want to use for NZBGet, by default the local port will say ‘Auto’ we need to change this to our own value otherwise the port will change every time you restart. In this case I am using 32333 but you can choose anything you want. This effectively port forwards to the container port of 6789.
You do not need to change any settings in Network or Links
Environment Variables (GUID and PGID)
Next we are going to setup a couple of ‘Environment’ variables this is the user details we took note of earlier in the guide, this allows the Docker image to have the right access to the shares we just added.
In the environment tab enter the details as shown in the screenshot, but change them to whatever yours were noted as.
To ensure the NZBGet container knows which timezone you are in, you can set this within the enviroment variables, using TZ and then a standard value for your Timezone. You can use this handy chart over on the VMware site, this setting is only really required if you use the scheduled download times within NZBGet.
Click OK and this will take you back to the summary screen we saw earlier.
You can now launch the Docker image as it is ready to roll.
open up a new tab and go to the ip of your NAS and the port number you chose.
The default login details are:
Username = nzbget
Password = tegbzn6789