Guide: Arr-Stack + qBitTorrent using Docker-Compose
With a whole slew of new reasons on why subscribing to streaming services WILL give you worse services than NOT subscribing to them, i think it’s time to write a new up-to-date guide on how to install and configure an Arr-Stack + qBitTorrent via Docker-Compose.
- Preamble
===========
All these guides assume you have basic knowledge about docker & docker compose. To quickly summarize the methods here:
You either use a webui to manage your docker-compose like Dockge or you create a folder and a docker-compose.yaml for each service listed here and copy the contents of each of them into that docker-compose.yaml; IMPORTANT: You HAVE to name them docker-compose.yaml exactly like that. Do NOT name them radarr.yaml for example. After you created a docker-compose.yaml and filled it with the contents here, you simply run docker compose up -d
I specifically did NOT route all those docker-compose files through a VPN container like Gluetun. In my case i have my Mullvad VPN setup on my router directly and selected the whole server to be tunneled through that VPN.
You can add a VPN container to your setup and route all the docker compose files through that. But i will not go through this on this guide. There are guides out there how to do that and you can even ask any big enough LLM as this isn’t really that complicated.
Just as a simple run through. Install Gluetun as an additional docker container and append network_mode: “container:gluetun”
at the end of every docker-compose.yaml here according to the gluetun readme. You can then start a console for each docker container and check if the outside world IP adress is NOT your real one with curl ipinfo.io
This is a super super quick run through and you HAVE to properly configure gluetun and run tests that stopping that container does NOT let your real IP go through.
- Folder Structure
===================
If you want to store all your media on a NAS or some other external drive, make sure it is configured properly for symlinking / hardlinking and that you have proper permissions for this storage. Everything here will run with the 1000 user and has to create new files to work.
So this is the folder structure i use. And it is stored on a NFS-Share coming from my TrueNAS.
<span style="color:#323232;">arr-stack (for this example let's say it's located in /mnt/arr-stack)
</span><span style="color:#323232;"> |---- media
</span><span style="color:#323232;"> |---- movies
</span><span style="color:#323232;"> |---- shows
</span><span style="color:#323232;"> |---- music
</span><span style="color:#323232;"> |---- etc.
</span><span style="color:#323232;"> |---- configs
</span><span style="color:#323232;"> |---- radarr
</span><span style="color:#323232;"> |---- sonarr
</span><span style="color:#323232;"> |---- qbittorrent
</span><span style="color:#323232;"> |---- etc.
</span><span style="color:#323232;"> |---- torrents
</span><span style="color:#323232;"> |---- complete
</span>
I intentionally broke out the torrent folder to make it easier accessible for when you download something fully manual and you want to grab it out of the ‘completed’ folder without searching too deep.
- Docker-Compose Files for each service
========================================
qBitTorrent is the download application for Usenet. Alternatively you can use NZBget but i find Sab to be more modern, versatile and i just like it.
qBitTorrent
<span style="color:#323232;">services:
</span><span style="color:#323232;"> qbittorrent:
</span><span style="color:#323232;"> image: lscr.io/linuxserver/qbittorrent:latest
</span><span style="color:#323232;"> container_name: qbittorrent
</span><span style="color:#323232;"> environment:
</span><span style="color:#323232;"> - PUID=1000
</span><span style="color:#323232;"> - PGID=1000
</span><span style="color:#323232;"> - TZ=Etc/UTC
</span><span style="color:#323232;"> - WEBUI_PORT=8081
</span><span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - /mnt/arr-stack/configs/qbittorrent/config:/config
</span><span style="color:#323232;"> - /mnt/arr-stack/torrents/complete:/downloads
</span><span style="color:#323232;"> ports:
</span><span style="color:#323232;"> - 8081:8081
</span><span style="color:#323232;"> - 6881:6881
</span><span style="color:#323232;"> - 6881:6881/udp
</span><span style="color:#323232;"> restart: unless-stopped
</span><span style="color:#323232;">networks: {}
</span>
Radarr and Sonarr are the applications that will actually find and track your Movies (Radarr) and Shows (Sonarr). Additionally there is Lidarr for Music and Whisparr for porn.
Radarr
<span style="color:#323232;">version: "3.3"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;"> arch-radarr:
</span><span style="color:#323232;"> ports:
</span><span style="color:#323232;"> - 7878:7878
</span><span style="color:#323232;"> container_name: radarr
</span><span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - /mnt/arr-stack:/mnt/arr-stack
</span><span style="color:#323232;"> - /mnt/arr-stack/configs/radarr:/config
</span><span style="color:#323232;"> - /etc/localtime:/etc/localtime:ro
</span><span style="color:#323232;"> environment:
</span><span style="color:#323232;"> - PUID=1000
</span><span style="color:#323232;"> - PGID=1000
</span><span style="color:#323232;"> image: binhex/arch-radarr
</span><span style="color:#323232;"> restart: unless-stopped
</span><span style="color:#323232;">networks: {}
</span>
Sonarr
<span style="color:#323232;">version: "3.3"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;"> arch-sonarr:
</span><span style="color:#323232;"> ports:
</span><span style="color:#323232;"> - 8989:8989
</span><span style="color:#323232;"> - 9897:9897
</span><span style="color:#323232;"> container_name: sonarr
</span><span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - /mnt/arr-stack:/mnt/arr-stack
</span><span style="color:#323232;"> - /mnt/arr-stack/configs/sonarr:/config
</span><span style="color:#323232;"> - /etc/localtime:/etc/localtime:ro
</span><span style="color:#323232;"> environment:
</span><span style="color:#323232;"> - PUID=1000
</span><span style="color:#323232;"> - PGID=1000
</span><span style="color:#323232;"> image: binhex/arch-sonarr
</span><span style="color:#323232;"> restart: unless-stopped
</span><span style="color:#323232;">networks: {}
</span>
Prowlarr is the application where you can configure your usenet sites. There you will put in the URLs of your Indexers like Drunkenslug and your API keys for those sites. Prowlarr will periodically check the availability of those services and will sync these accounts to all your connected services (Radarr, Sonarr, Lidarr, Whisparr, etc.). Prowlarr will then be doing the actual heavy lifting of accessing the API of any Usenet and search for your stuff.
Prowlarr
<span style="color:#323232;">version: "3.3"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;"> arch-prowlarr:
</span><span style="color:#323232;"> ports:
</span><span style="color:#323232;"> - 9696:9696
</span><span style="color:#323232;"> container_name: prowlarr
</span><span style="color:#323232;"> volumes:
</span><span style="color:#323232;"> - /mnt/arr-stack/configs/prowlarr:/config
</span><span style="color:#323232;"> - /etc/localtime:/etc/localtime:ro
</span><span style="color:#323232;"> environment:
</span><span style="color:#323232;"> - PUID=1000
</span><span style="color:#323232;"> - PGID=1000
</span><span style="color:#323232;"> image: binhex/arch-prowlarr
</span><span style="color:#323232;"> restart: unless-stopped
</span><span style="color:#323232;">networks: {}
</span>
- Configuring each service
===========================
Now that we have all these Services up and running. It’s time to properly configure them. Let’s start with qBitTorrent
3.1 qBitTorrent
- Open the Webui with ipofyourserver:8081
- Click on “Tools” in the menu bar
- Click on Options
- Click on Web Ui
- Under “Authentification” change your Username and Password
- Click on Save at the bottom
3.2 Sonarr
- Open the Webui with ipofyourserver:8989
- Click on Settings
Root Folder
- Click on "Media Management"
- Under Root Folders, add /mnt/arr-stack/media/shows
Connect qBitTorrent
- Click on "Download Clients"
- Click on the big PLUS icon
- Select qBitTorrent
- Enter the IP Adress of your server
- Port: 8081
- Enter your username and passwort from earlier
- Under Category enter tv
- Check "Remove Completed"
- Click on Test and Save
Grab your API Token
- Click on General
- Copy API Key and save it for later. We need it for Prowlarr
3.3 Radarr
- Open the Webui with ipofyourserver:7878
- Click on Settings
Root Folder
- Click on "Media Management"
- Under Root Folders, add /mnt/arr-stack/media/movies
Connect qBitTorrent
- Click on "Download Clients"
- Click on the big PLUS icon
- Select qBitTorrent
- Enter the IP Adress of your server
- Port: 8081
- Enter your username and passwort from earlier
- Under Category enter tv
- Check "Remove Completed"
- Click on Test and Save
Grab your API Token
- Click on General
- Copy API Key and save it for later. We need it for Prowlarr
The same procedure goes for Lidarr and Whisparr aswell with their respective categories changed.
3.4 Prowlarr
- Open the Webui with ipofyourserver:9696
- Click on Settings
Connect Sonarr and Radarr
- Click on Apps
- Click on the big Plus Icon
- Click on Sonarr
- Sync Level "Full Sync"
- Tags: none
- Prowlarr Server: localhost:9696
- Sonarr Server: ipofyourserver:8989
- API Key from Sonarr
- Test and Save
- Rinse and Repeat for Radarr with adjusted infos
Add Indexers
- Click on Indexers
- Click on Add Indexer
- Type in the name of your indexer. Many of the big ones will be pre configures
- Example: The Pirate Bay
- Click on the entry
- Check "Enable"
- Sync Profile "Standard"
- Under Base URL select the first one (you may have to cycle through if one of them doesn’t work)
- Enter your Seed Ratio
- Test and Save
Prowlarr will now test and sync the indexers to your other apps like Sonarr and Radarr. Manually click on Test all Inders and then on Sync all Indexers. Now go back to Sonarr and Radarr and click on Settings -> Indexers and check if Drunkenslug (in our example) shows up there.
- You’re done
==============
Now this is obviously just the tip of the iceberg. You still don’t have “finetuned” profiles and explaining these would absolutely blow up the scope of this post.
I highly recommend you to check out these two posts over on the trash-guides site: Sonarr Profiles and Radarr Profiles
So, these are the basics and there is much more to finetune. But you absolutely are ready to go sailing on the high seas now!
If you’re looking for a neat mobile app to manage your sonarr, radarr and sabnzbd i highly recommend you check out nzb360.
Here is an alternate guide on how to set it up for Usenet Downloads: lemmy.dbzer0.com/post/26287096
Part 2 of this Guide is aiming for Jellyfin + Jellyseer: lemmy.dbzer0.com/post/26296377