Earlier today I had a guy over to fix my oil burner, and he spotted my server rack in the basement. One thing led to another, we started talking about Plex, and he asked how to get a setup like that running at home. If you are tired of juggling five different streaming subscriptions only to find out the movie you want got pulled last week, running your own media server fixes that problem.
This guide walks through setting up an automated media server stack on TrueNAS: Plex, Radarr, Sonarr, Prowlarr, qBittorrent (with a built-in VPN), and Seerr. You do not need to be a Linux wizard to follow along, you just need to take it one step at a time.
Disclaimer: This guide is strictly for educational purposes and for organizing media you already own or have the rights to use (such as personal disc rips or Linux ISOs). Do not use this setup to download or share copyrighted material you do not have permission to access. You are responsible for following your local laws and your internet provider’s terms of service.
How the Stack Works (The Big Picture)
If you have never used Docker before, think of installing software directly onto a server like bolting every tool straight onto your workbench. Once you have five or six tools sharing the same bolts and power strip, swapping one out without messing up the others gets painful fast.
A Docker container is more like a self-contained rolling tool chest. Each app gets its own chest with all the exact parts and settings it needs inside. If one app needs an update or breaks, you can wheel that chest out and swap in a fresh one without touching anything else in your shop. TrueNAS uses Docker under the hood for its Apps system, which makes managing these containers much easier.
Here is how each piece of the stack fits together:
| App | What It Does | Default Port | Where to Install |
|---|---|---|---|
| Seerr | The request menu where you search for movies and shows | 5055 | TrueNAS Apps Catalog |
| Radarr | Tracks and organizes your movie library | 7878 | TrueNAS Apps Catalog |
| Sonarr | Tracks and organizes your TV show library | 8989 | TrueNAS Apps Catalog |
| Prowlarr | Manages your indexers in one place and syncs them to Radarr and Sonarr | 9696 | TrueNAS Apps Catalog |
| qBittorrent | Downloads content safely behind a VPN tunnel | 8080 | Custom App (YAML) |
| Plex | Streams your organized media to your TVs, phones, and browsers | 32400 | TrueNAS Apps Catalog |
Plex on its own only plays the files you already have. It does not track down or organize content for you, which is why we pair it with the rest of these tools.
Prerequisites
Before you start clicking around in TrueNAS, make sure you have these ready:
- A machine running TrueNAS (version 24.10 or newer, which uses Docker natively for Apps) with a storage pool already created.
- A Virtual Private Network (VPN) provider that supports port forwarding. Private Internet Access (PIA) and ProtonVPN are two solid choices because both support port forwarding and work cleanly with our qBittorrent container.
- A free Plex account (you can sign up at plex.tv). If your server has an Intel CPU with integrated graphics (QuickSync) or an Nvidia GPU and you want hardware transcoding, you will also need a Plex Pass.
- At least one indexer account to connect to Prowlarr later.
Step 1: Set Up Storage and Permissions
Before installing any apps, you need a place for your downloads and your media library. For all the apps we install from the TrueNAS catalog, we can let the installer create each app’s config dataset automatically (using ixVolume) because it handles permissions for you. We only need to pre-create the shared downloads and media folders, plus one config folder for our custom qBittorrent container.
You can create downloads and media as two separate datasets, or put both as folders inside one single parent dataset (like /mnt/tank/data).
Tip: If you want instant file moves without using double disk space while seeding, put
downloadsandmediaas subfolders inside one single dataset (for example,/mnt/tank/data/downloadsand/mnt/tank/data/media). In TrueNAS, separate datasets act like separate drives, so Radarr and Sonarr have to copy files across instead of using instant hardlinks. Either layout works, just know that separate datasets will copy files over instead of hardlinking them.
- In the TrueNAS web interface, go to Storage > Datasets and select your main storage pool (I will call it tank here, so swap tank for your actual pool name).
- Click Add Dataset, create your data dataset (or separate downloads and media datasets) and a configs dataset for qBittorrent, and set Dataset Preset to Apps. Choosing Apps automatically gives the built-in
appsuser and group (UID568/ GID568) permission to read and write here without using insecure shortcuts likechmod 777. - Open System > Shell and create the subfolders so your shared folders and qBittorrent config directory are ready.
Run these commands in the TrueNAS shell (adjust the paths if you used separate downloads and media datasets):
mkdir -p /mnt/tank/data/downloads
mkdir -p /mnt/tank/data/media/{movies,tv}
mkdir -p /mnt/tank/configs/qbittorrent/wireguard
chown -R 568:568 /mnt/tank/data /mnt/tank/configs
Code language: Bash (bash)
Important: Never use
chmod 777to fix a permission error. Keeping everything owned by UID568and GID568follows least-privilege permissions and keeps all your containers on the same page.
Step 2: Install Radarr and Sonarr First (TrueNAS Apps Catalog)
I recommend installing Radarr and Sonarr before qBittorrent because all three of them share the exact same downloads folder. Getting Radarr and Sonarr in place first makes it easy to confirm your paths before you spin up the download client.
- In TrueNAS, go to Apps > Discover Apps, search for Radarr, and click Install.
- Under User and Group Configuration, verify User ID and Group ID are set to
568. - Under Storage Configuration:
- Leave Config on ixVolume so TrueNAS creates the dataset and sets permissions automatically.
- Add Additional Storage mounts with Type set to Host Path:
- Downloads:
/mnt/tank/data/downloadsmounted to/downloads. - Media:
/mnt/tank/data/mediamounted to/data(this must match Plex so all three apps see/data/moviesand/data/tv).
- Downloads:
- Click Install and wait for it to show Running.
- Repeat the exact same steps for Sonarr, letting TrueNAS auto-create its config dataset and sharing the exact same downloads and media paths.
Step 3: Install qBittorrent Behind a VPN (Custom App)
The native qBittorrent app in the TrueNAS catalog does not have built-in VPN support. Because of that, we use a Custom App running the hotio/qbittorrent container, which includes WireGuard support, a killswitch, and automatic port forwarding for PIA and ProtonVPN.
Port forwarding lets other peers connect directly to you, which speeds up downloads and keeps private trackers happy. With hotio/qbittorrent, setting VPN_AUTO_PORT_FORWARD=true handles that automatically and updates qBittorrent’s listening port for you.
- In TrueNAS, go to Apps > Discover Apps.
- Click the three-dots menu next to Custom App and select Install via YAML.
- Set the Application Name to qbittorrent.
Before you paste the YAML below, update these values to match your setup:
- Replace tank with your actual pool name, and make sure the downloads volume (
/mnt/tank/data/downloads:/downloads) matches what you used in Radarr and Sonarr. - Replace America/New_York with your local timezone.
- Replace 192.168.1.0/24 in
VPN_LAN_NETWORKwith your actual home subnet (if you get this wrong, the container firewall will block you from opening the qBittorrent web page). - For PIA: Fill in
VPN_PIA_USERandVPN_PIA_PASS.
Paste this into the YAML editor and click Save:
services:
qbittorrent:
image: ghcr.io/hotio/qbittorrent:latest
container_name: qbittorrent
ports:
- "8080:8080"
environment:
- PUID=568
- PGID=568
- UMASK=002
- TZ=America/New_York
- WEBUI_PORTS=8080/tcp,8080/udp
- VPN_ENABLED=true
- VPN_CONF=wg0
- VPN_PROVIDER=pia
- VPN_AUTO_PORT_FORWARD=true
- VPN_PIA_USER=your_pia_username
- VPN_PIA_PASS=your_pia_password
- VPN_LAN_NETWORK=192.168.1.0/24
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=1
volumes:
- /mnt/tank/configs/qbittorrent:/config
- /mnt/tank/data/downloads:/downloads
restart: unless-stopped
Code language: YAML (yaml)
Using ProtonVPN instead of PIA? Download a WireGuard config from your ProtonVPN dashboard on a P2P server with NAT-PMP (Port Forwarding) turned on, and save it as
/mnt/tank/configs/qbittorrent/wireguard/wg0.conf. Then changeVPN_PROVIDER=piatoVPN_PROVIDER=proton, keepVPN_AUTO_PORT_FORWARD=true, and remove the twoVPN_PIA_*lines.
Warning: Leave
net.ipv6.conf.all.disable_ipv6=1enabled unless you know for a fact that your VPN provider supports IPv6. Disabling IPv6 inside this container prevents leaks and connection errors on IPv4-only VPN tunnels.
Step 4: Install Prowlarr, Seerr, and Plex (TrueNAS Apps Catalog)
All three of these apps are in the official TrueNAS Apps catalog (Apps > Discover Apps). Leave their Config storage on ixVolume so TrueNAS creates each dataset and sets permissions automatically, and verify User ID and Group ID are 568:
- Prowlarr: Install with default config storage. It does not need access to
downloadsormedia. - Seerr: Install with default config storage. It does not need access to
downloadsormediaeither. - Plex:
- Leave Config and Logs on ixVolume.
- Set Plex Transcode Storage to tmpfs with a Size limit of
1GB (this puts temporary transcode chunks in RAM instead of wearing down your drives). - Under Plex Data Storage, set Type to Host Path and point it to
/mnt/tank/data/media. Inside the Plex container, this maps to/data, matching Radarr and Sonarr so all three apps see your libraries at/data/moviesand/data/tv. - Before clicking install, open plex.tv/claim in another tab, copy the token, and paste it into the Plex Claim field (it expires in four minutes).
- If your TrueNAS box has an Intel CPU with QuickSync or an Nvidia GPU and you have a Plex Pass, check the GPU passthrough option at the bottom of the install form.
Wait until all six apps show Running on the Apps screen before moving on.
Step 5: Connect the Apps Together
Now that all six containers are running, we just need to introduce them to each other. You can reach each app by going to http://<Your-TrueNAS-IP>:<Port> in your browser.
Configuring qBittorrent (Port 8080)
- In TrueNAS, go to Apps, click qbittorrent, and open Logs under the Workloads card to grab the temporary auto-generated WebUI password (and confirm your VPN connected and received a forwarded port).
- Open
http://<Your-TrueNAS-IP>:8080and log in with username admin and that temporary password. - Go to Tools > Options > Web UI and set your own permanent username and password.
- Go to Tools > Options > Downloads and set Default Save Path to
/downloads. - Click Save at the bottom.
Adding Indexers in Prowlarr (Port 9696)
- Open
http://<Your-TrueNAS-IP>:9696and set up your login credentials when prompted. - Go to Indexers > Add Indexer, pick your indexer from the list, enter your API key or credentials, and click Test then Save.
- Leave this tab open, we will come right back to Settings > Apps as soon as Radarr and Sonarr are configured.
Setting Up Radarr (Port 7878) and Sonarr (Port 8989)
Do these steps in Radarr (http://<Your-TrueNAS-IP>:7878), then repeat them in Sonarr (http://<Your-TrueNAS-IP>:8989):
- Set up your login credentials on first launch.
- Go to Settings > Media Management, scroll down to Root Folders, and click Add Root Folder.
- In Radarr, choose
/data/movies. - In Sonarr, choose
/data/tv.
- In Radarr, choose
- Go to Settings > Download Clients, click the + button, and choose qBittorrent.
- Enter your TrueNAS IP for Host,
8080for Port, and your qBittorrent username and password. - Set Category to movies in Radarr (or tv in Sonarr), click Test, and click Save.
- Go to Settings > General, copy the API Key, then switch back to your Prowlarr tab.
- In Prowlarr, go to Settings > Apps, click the + button, and add both Radarr and Sonarr using
http://<Your-TrueNAS-IP>:7878(and:8989),http://<Your-TrueNAS-IP>:9696for Prowlarr Server, and their API keys. Prowlarr will push your indexers to both apps automatically.
Setting Up Seerr (Port 5055)
- Open
http://<Your-TrueNAS-IP>:5055and click Sign In with Plex. - Select your Plex server from the dropdown, click Sync Libraries, and toggle on your Movies and TV Shows libraries.
- On the next screen, add Radarr and Sonarr using your TrueNAS IP, their ports (
7878and8989), their API keys, your preferred Quality Profile (for example, HD-1080p), and their root folders (/data/moviesand/data/tv).
Setting Up Plex Libraries (Port 32400)
- Open
http://<Your-TrueNAS-IP>:32400/weband finish the quick first-run wizard. - Go to Settings > Manage > Libraries > Add Library.
- Create a Movies library pointing to
/data/movies, and a TV Shows library pointing to/data/tv.
Note: Avoid poking extra holes in your router’s firewall for Radarr, Sonarr, Prowlarr, or qBittorrent. Keep those local to your home network. If you want to request or watch content away from home, use Plex’s built-in Remote Access (port
32400) or set up Tailscale on TrueNAS so you can reach your home network securely.
Step 6: Test Your First Request
Open Seerr (http://<Your-TrueNAS-IP>:5055), search for a movie or show, and click Request. Within a minute or two, you should see it appear in Radarr or Sonarr, queue up in qBittorrent, and land in Plex once it finishes.
One quick heads up before you walk away: automation is never completely “set it and forget it.” Check your TrueNAS dashboard every now and then to make sure your storage pool stays under 80% full (ZFS slows down when it gets cramped), and glance at container logs if a request ever stalls. Let me know how you make out, and give me a shout if you hit a snag!