In this guide I will be taking you through the steps to download and setup NZBHydra2 in Docker on a Synology NAS, this makes some assumptions that you know your way around the DSM interface and have already read one of my previous guides.
|Added Docker Compose details||03/05/2021|
NZBHydra2 combines all your various indexers into a single search site, this can then be fed into Radarr, Sonarr etc. This means you only need to update the single application whenever you want to add a new indexer rather than each one individually.
Downloading the container
So first up we need to grab the container as per my other guides we are using the Linux|Server version as these work great.
Open up Docker within DSM and navigate to the ‘Registry’ section and search for Hydra in the keyword box. Right click and download the Linux|Server version. When it asks which version number you want to use just choose latest this will ensure the container updates to new versions when they are released.
If you now go to the ‘Image’ section you will see the container downloading.
Setting up a Docker User for Hydra 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 container
Back in the ‘Image’ menu highlight the NZBHydra 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.
On the ‘Volume’ tab you need to add the paths to where you want to keep the config files
Next is the ‘Port Settings’ tab you will need to change the Auto setting to either the identical port number 5075 or change it to a custom one if you want to. This is the port you will use to access the Hydra container.
Last up is the PGID and PUID that we made note of earlier in the guide.
Click on OK to get back to the main menu and then click on next, tick the ‘Run this container after the wizard has finished and hit ‘Apply’
The container should now start up, this can be seen in the ‘Container’ tab as the RAM and CPU usage should fluctuate as it starts, its worth giving it a minute or so on its first launch just in case it needs to download any updates during boot. You should then be able to access the interface via your Synology IP and the port number you chose earlier.
You can use the below code saved as hydra.yml to do the entire process above in one quick command via SSH.
version: "3.2" services: nzbhydra-linuxserver: image: linuxserver/nzbhydra2:latest container_name: nzbhydra environment: - PGID=YOURPGID - PUID=YOURPUID - TZ=Europe/London volumes: - /volume1/docker/hydra:/config ports: - 5076:5076/tcp restart: unless-stopped
sudo docker-compose -f /volume1/docker/hydra.yml up -d --remove-orphans