Skip to content

NZBHydra2 in Docker on a Synology NAS

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.

UpdateDate
Added Docker Compose details03/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.

Hydra01

If you now go to the ‘Image’ section you will see the container downloading.

Hydra02

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.

Hydra04

On the ‘Volume’ tab you need to add the paths to where you want to keep the config files

Network

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.

Hydra06

Last up is the PGID and PUID that we made note of earlier in the guide.

Hydra07

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.

Docker Compose

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

Throw me some bits

If you have found my site useful please consider pinging me a tip as it helps cover the cost of running the site, it could even buy me a beer 🙂

  • Bitcoin
  • Ethereum
  • Tether
  • Xrp
  • Polkadot
  • Binance coin
  • Litecoin
  • Bitcoin cash
  • Dogecoin
  • Tron
  • Monero
  • Omisego
Scan to Donate Bitcoin to bc1qfznx5kxad9k9z5t9y79mkm9ukfexan9a6wrzl0

Donate Bitcoin to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin

Scan to Donate Ethereum to 0x162fc7781D3C6c6f27197A3A92567b5DAF258f19

Donate Ethereum to this address

Scan the QR code or copy the address below into your wallet to send some Ethereum

Scan to Donate Tether to 0x162fc7781D3C6c6f27197A3A92567b5DAF258f19

Donate Tether to this address

Scan the QR code or copy the address below into your wallet to send some Tether

Scan to Donate Xrp to rKGpNHetksTn4dgwgpiTkg8JM4uJ3J6pam

Donate Xrp to this address

Scan the QR code or copy the address below into your wallet to send some Xrp

Scan to Donate Polkadot to 153iRH61nXQZUXMveZxCmYyzjf1cWYVnxpHpfifoNchQuXbY

Donate Polkadot to this address

Scan the QR code or copy the address below into your wallet to send some Polkadot

Scan to Donate Binance coin to bnb14ye5rju74u5ythneaum2rjvp8eqep6wq8flghx

Donate Binance coin to this address

Scan the QR code or copy the address below into your wallet to send some Binance coin

Scan to Donate Litecoin to LfNfer3aSqLx4p8KfbbkT96ArXLXLDPxoD

Donate Litecoin to this address

Scan the QR code or copy the address below into your wallet to send some Litecoin

Scan to Donate Bitcoin cash to qrc7scd2drzsd7kywpsjfklvkmm26fqc2vd7uyvdx9

Donate Bitcoin cash to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin cash

Scan to Donate Dogecoin to DCwbNzfYHx22MDSyEVLWgfjxziYHtcgwAM

Donate Dogecoin to this address

Scan the QR code or copy the address below into your wallet to send some Dogecoin

Scan to Donate Tron to TL1Q3vY9mHnDMedHRyU8ERUAY8SzJ4FXiV

Donate Tron to this address

Scan the QR code or copy the address below into your wallet to send some Tron

Scan to Donate Monero to 45qwFr42XiA8egC5z2HdSQ2FzzP9VR1MvD5Sicg4EhGvdvTutx9GsF6DeU8DHAsTZy2ShBERjCB5rdy8iQ9CFnFu9Z6Adgw

Donate Monero to this address

Scan the QR code or copy the address below into your wallet to send some Monero

Scan to Donate Omisego to 0x162fc7781D3C6c6f27197A3A92567b5DAF258f19

Donate Omisego to this address

Scan the QR code or copy the address below into your wallet to send some Omisego

Published inDockerSynology

22 Comments

  1. Nathan Nathan

    I am getting stuck at the step “On the ‘Volume’ tab you need to add the paths to where you want to keep the config files” I made a docker/nzbhydra folder and can direct it there, but the \config says it’s an incorrect value…

    • Nathan Nathan

      After reinstalling Docker I was able to get past this step but I came across another issue. In the Environment tab there were already some things listed in there. I left them there and added the puid and pgid and after setup tried launching. Nothing. I deledet that setup and then I did the process over again but took out all the other things in the Environment tab, and added the puid and pgid again. Still nothing. What could be wrong?

      • Dr_Frankenstein Dr_Frankenstein

        Leave the other environment variable where they are as they are used. Would be good to get a screenshot of your settings to trouble shoot. Ping me an email

  2. en en

    Why are you creating new users for each application when Docker containers are already limited to the application running and its permissions?

    • Dr_Frankenstein Dr_Frankenstein

      Hey, while it may be overly cautious to have an individual user for each container you reduce the potential access of that container, so if someone manages to breach the application it is running even if they manage to escalate the permissions in the container they will not get any higher than the users permissions on the host.

      Number 2 on this blog post probably explains it better. https://snyk.io/blog/10-docker-image-security-best-practices/

      I may tweak this post as in reality I created a single user with just the permissions required to access my media for Sonarr/Radarr etc

  3. Thomas Jespersen Thomas Jespersen

    I just want to mention that it seems you should install “nzbhydra2” now (also from linuxserver). There is also a “hydra2” image which linuxserver say is deprecated.

    • Dr_Frankenstein Dr_Frankenstein

      Thanks for pointing that out, I am still running the Hydra2 image. You tend to set these up and they just work. I will get this changed and on my personal setup

  4. JRGNBML JRGNBML

    Please, can you explain how to do this:
    “I always use the Docker folder and then a sub-directory for all configs.”
    Thanks.

    • Dr_Frankenstein Dr_Frankenstein

      When you install Docker it will create a shared directory, I just make subfolders within this for each container. This makes backups super easy

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.