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.
0. 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 also have to remove all the ports: sections in the docker-compose.yamls of each service because it will throw an error if you use the network_mode: and you then have to add the ports of each service into the gluetun docker-compose.yaml.
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
For every configuration step in this guide where it says "ipofyourserver" for sonarr, radarr, etc. you will have to change that to 127.0.0.1 as they all run inside the same network of gluetun.
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.
1. 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.
arr-stack (for this example let's say it's located in /mnt/arr-stack)
|---- media
|---- movies
|---- shows
|---- music
|---- etc.
|---- configs
|---- radarr
|---- sonarr
|---- qbittorrent
|---- etc.
|---- torrents
|---- complete
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.
2. 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.
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.
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.
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.
4. 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.
Saved for later, I've been meaning to look into getting this going. Any suggestions on storage solutions to hook to an rpi? I just have a 1tb external on it right now so obv that'd fill up pretty quick lol
I don't think a raspberry pi is really suitable for huge amounts of storage. Ideally you should prefer some proper NAS device that also does some proper RAID configuration.
I actually run my arrstack on a Synology, it has official support for docker and docker-compose. Granted I do have a higher powered model (the DS1621xs+) but most of the arrstack is fairly low power friendly.
You can also get away with running Plex on a nas but I would only do it if 1. Your nas has a quick sync supported CPU and you get that enabled properly or 2. You go the direct streaming only / no transcoding setup - which means checking the codec support for all client devices and either only downloading exactly the supported codecs or pre-transcoding everything.
What I do is actually run Plex/JF on a separate nuc and point it at the nas using a network mount. Just don't use a network mount for the Plex app database (maybe same applies to JF too), just mount the media files itself. Running Plex and having it access the DB over a network mount is a big no no for various reasons.
What nuc do you use? I've seen people touting the N100 as this miracle chip but IIRC it's like 1Ghz to my pi's 1.8 I think? I know moving away from the pi is fairly inevitable but IDK what to move to. A NUC sorta thing makes sense, but at the same time if I bother to buy new hardware I want to be able to run a game server or two and I assume I'd probably need more power than a NUC for that (I haven't actually looked into reqs for that yet, although I know some games are explicitly more RAM intensive.)
I use a nuc10i7fnkn and since transcoding is almost entirely done using the dedicated quicksync hardware in the CPU you don't end up actually using the CPU much. So I'm sure it would work on an older generation or the i5 version. I don't know much about the N100 but it looks like it would be very capable. Supposedly it boosts to 3+GHz and it's a 10nm node compared to my NUCs 14nm. But the GPU has the same number of execution units so I'm not sure if the quicksync transcoding performance is that different. I saw someone mention 3 simultaneous 4K transcodes and I think I got about that much on mine. Generally for quick sync performance you just compare the Intel hd or uhd graphics model (like 630, 730, uhd, etc) and the number of execution units and that should correlate to the performance. Also check the Wikipedia page for quicksync for codec compatibility (under the Hardware decoding and encoding section), but anything recent will handle most stuff you'd need: https://en.m.wikipedia.org/wiki/Intel_Quick_Sync_Video
The are stack itself is so low power that you absolutely can run it on a NAS like synology for example... I mean you can run a Plex server on a NAS and it actually works so...
In my case I have it seperated. I have a NAS that does absolutely nothing else besides being a NAS. I then have my mediaserver for the are stack and jellyfin.
So that could be your Pi, and the you get an old used Synology for example.