A self-hosted Docker Compose media server stack using Jellyfin, Sonarr, Radarr, Prowlarr, qBittorrent, FlareSolverr, and Gluetun VPN.
Edit the Gluetun environment variables according to the Gluetun wiki.
The download client and media managers share one /data mount so imports can use atomic moves and hardlinks. Configure these settings in the applications:
| Application | Setting | Value |
|---|---|---|
| qBittorrent | Default save path | /data/torrents |
| qBittorrent | tv category save path |
/data/torrents/tv |
| qBittorrent | movies category save path |
/data/torrents/movies |
| Sonarr | Download client category | tv |
| Sonarr | Root folder | /data/media/tv |
| Radarr | Download client category | movies |
| Radarr | Root folder | /data/media/movies |
| Jellyfin | TV library | /data/media/tv |
| Jellyfin | Movie library | /data/media/movies |
sudo docker compose up
The VPN-routed applications use network_mode: service:gluetun and share Gluetun's network namespace. When configuring connections between those containers, use localhost with the destination port—not the Compose service name. For example, configure Sonarr and Radarr to reach qBittorrent at localhost:8080, and configure Prowlarr to reach Sonarr and Radarr at localhost:8989 and localhost:7878.
Jellyfin also shares Gluetun's network namespace. Gluetun publishes host port 80 to Jellyfin's HTTP port 8096; connect from another device using the Docker host's IP address. Jellyfin's outbound traffic is VPN-routed, and LAN discovery/DLNA multicast may not work in this configuration.
| Container | VPN-network address | Host/LAN address |
|---|---|---|
| Jellyfin | localhost:8096 |
<host-ip>:80 |
| docker-whats-my-ip | localhost:3000 |
<host-ip>:3000 |
| qBittorrent | localhost:8080 |
<host-ip>:8080 |
| Radarr | localhost:7878 |
<host-ip>:7878 |
| Sonarr | localhost:8989 |
<host-ip>:8989 |
| FlareSolverr | localhost:8191 |
<host-ip>:8191 |
| Prowlarr | localhost:9696 |
<host-ip>:9696 |
Gluetun's 80:8096 mapping exposes Jellyfin directly on port 80; no separate proxy is required. Port 8096 is available inside the shared network namespace, but is not published on the Docker host.
Ensure no other service is listening on the Docker host's port 80. For a fresh deployment, start the stack with:
sudo docker compose up -dWhen migrating an existing host-network/proxy deployment, schedule a brief interruption: the changed port mapping requires recreating Gluetun and its namespace-sharing services. Remove the old jellyfin-proxy container if one exists so it does not retain port 80, then recreate the stack:
sudo docker compose up -d --force-recreateOpen http://<host-ip>/ from your LAN. This is plain HTTP, not HTTPS; do not expose it directly to the internet. VPN routing does not make the published port private: router forwarding and host firewall rules still determine reachability.
- QBittorrent - QBittorrent Website | QBittorrent Docker Image
- Radarr - Radarr Website | Radarr Docker Image
- Sonarr - Sonarr Website | Sonarr Docker Image
- FlareSolverr - FlareSolverr Website | FlareSolverr Docker Image
- Jellyfin - Jellyfin Website | Jellyfin Docker Image
- Prowlarr - Prowlarr Website | Prowlarr Docker Image
- Gluetun - Gluetun Website | Gluetun Docker Image
- docker-whats-my-ip - Docker image
MIT