|Added Docker Compose details|
Added new folder mappings to ensure atomic moves and Hard-linking
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.
On to the Guide
The first step is to download the NZBGet container, 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
Setting up a Docker User for NZBGet and Obtaining the PGID and PUID
In previous versions of this guide we used your default admin account for each container, this is not very secure so please now follow the separate setup guide and then head back here.
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.
Tick the ‘Enable Auto Restart’ this will ensure the container starts up automatically if you reboot.
Volumes / Mounts
We are now going to set up the folders or shares we want to mount to NZBget
Under the ‘Docker’ share create a folder called ‘NZBGet’ this is important as your configuration files will be stored here.
You will notice there is a consistent mount path for each of the folders across all my guides this is important as Docker will see all of your individual folders as one consistent filesystem rather than separate volumes. This will mean you should see much faster file moves (aka Atomic Moves) and also if you are using torrents it means you can enable hard-links.
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. I recommend keeping the same port numbers as the original container.
You do not need to change any settings in Network or Links
Environment Variables (PGID, PUID and Timezone)
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.
You can find a list of timezones here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
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
Also as a few comments have requested this is the PATHS setup within NZBGet itself, you will notice the only path you will need to change is the MainDir to ‘media/downloads’
You can use the below code saved as nzbget.yml to do the entire process above in one quick command via SSH. Ensuring you change the variables to your own media paths.
version: "3.2" services: linuxserver-nzbget: image: linuxserver/nzbget:latest container_name: nzbget environment: - PUID=YOURPUID - PGID=YOURPGID - TZ=Europe/London volumes: - /volume1/docker/nzbget:/config - /volume1/downloads:/media/downloads ports: - 6789:6789/tcp restart: unless-stopped
sudo docker-compose -f /volume1/docker/nzbget.yml up -d --remove-orphans