AutoPlexx — Fully Automated Plex Media Server Setup
A complete, opinionated Plex Media Server stack delivered as a single Docker Compose file — bootstrap streaming, request handling, library automation, downloads, and monitoring with one command.
Why AutoPlexx?
- One command, full stack — Plex, request handling (Seerr), library automation (Radarr/Sonarr), downloads, monitoring, and metadata curation all wired together.
docker compose up -d and you're done.
- Pre-built Kometa config included — IMDb Top 250 / Trakt / streaming-service collections, daily rotating playlists, and resolution/HDR overlays are ready to run, not a blank YAML you fill in over weeks.
- Network-isolated by design — four separate Docker networks split streaming, request flow, downloading, and monitoring so a misbehaving service can't talk to the rest.
- Stream analytics in the box — Tracearr ships built-in for concurrent-stream monitoring, geolocation, and account-sharing detection alongside Tautulli's usage reporting.
- Not locked to Plex — a ready-to-run Jellyfin service ships commented out, so swapping the media server is uncommenting a block rather than rebuilding the stack. What that costs you is documented up front.
Prerequisites
- Docker and Docker Compose (v2+)
- A Plex account and a claim token — generate this immediately before your first
docker compose up; claim tokens expire roughly 4 minutes after they're issued. Not needed if you're running Jellyfin instead
- Values for
DB_PASSWORD, JWT_SECRET, and COOKIE_SECRET in .env — Tracearr refuses to start without them and will fail the whole stack's up command
- OpenVPN credentials from a supported VPN provider (
OPENVPN_PROVIDER, OPENVPN_CONFIG, OPENVPN_USERNAME, OPENVPN_PASSWORD) — Transmission tunnels all traffic through OpenVPN and won't start without them. See Transmission VPN setup for details
Getting Started
Clone the repository:
git clone https://github.com/joshdev8/AutoPlexx.git
cd AutoPlexx
Copy .env.example to .env and fill in your values:
cp .env.example .env
Set USERDIR in .env to the parent directory where configs and media should live. All services bind-mount under ${USERDIR}/<service>, so this one variable controls where everything lands — you don't normally need to edit docker-compose.yml itself.
Pre-create Seerr's config directory and give it to your PUID:PGID. Load the values from .env into your shell first so the paths expand correctly (or substitute the literal values from your .env):
set -a; source .env; set +a
mkdir -p "${USERDIR}/docker/seerr/config"
sudo chown -R "${PUID}:${PGID}" "${USERDIR}/docker/seerr/config"
Unlike the linuxserver images (Radarr, Sonarr, etc.), the Seerr container runs as a fixed non-root node user and does not honor PUID/PGID — it can't fix ownership itself. If this directory doesn't already exist, Docker creates it as root on first boot and Seerr crashes with EACCES: permission denied, mkdir '/app/config/logs/'. Creating it up front owned by your user avoids that.
Start all services:
docker compose up -d
Open the dashboard at http://localhost:8090 (or whatever DASHBOARD_PORT you set — 8090 is the default).
There is nothing to configure — it shows every container's live status straight away, and links out to each service's own UI. As the rest of the stack finishes its first boot, the dashboard picks up each service's API key from the config file that service writes and lights up the corresponding panels on its own. See Dashboard for details.
Common Operations
docker compose ps # show running services
docker compose logs -f <service> # tail one service's logs
docker compose restart <service> # restart one service after editing its config
docker compose pull && docker compose up -d # update images (Watchtower also does this on a schedule)
docker compose down # stop everything (named volumes preserved)
docker compose config # validate YAML + env interpolation without starting anything
Architecture
flowchart LR
User([User])
Watchlist[Plex Watchlist]
User -->|streams from| Plex
User -->|requests via| Seerr
Watchlist -->|synced by| Watchlistarr
Seerr -->|submits to| Radarr
Seerr -->|submits to| Sonarr
Watchlistarr -->|drives| Radarr
Watchlistarr -->|drives| Sonarr
Prowlarr -->|provides indexers to| Radarr
Prowlarr -->|provides indexers to| Sonarr
Radarr -->|sends torrents| Transmission
Sonarr -->|sends torrents| Transmission
Transmission -->|completed files| Plex
Bazarr -->|fetches subtitles for| Plex
Plex -->|stream activity| Tautulli
Plex -->|stream activity| Tracearr
Tracearr --> TimescaleDB[(TimescaleDB)]
Tracearr --> Redis[(Redis)]
Telegraf -->|host + container metrics| Grafana
Tautulli -->|usage data| Grafana
cAdvisor -->|container metrics| Prometheus
NodeExporter[node-exporter] -->|host metrics| Prometheus
Prometheus -->|scraped time-series| Grafana
See Network Architecture below for the exact network membership of each service.
Screenshots
Screenshots of the running stack — Plex, Seerr, Tautulli, Grafana, and Tracearr — coming soon. Contributions welcome via PR.
Services
Media Server
| Service |
Description |
Port |
| Plex |
Central media server |
32400 (host network) |
| Jellyfin |
Open-source media server — optional drop-in replacement for Plex, shipped commented out |
8096 (host network) |
Pick one media server, not both — they'd index the same library twice. Plex is the
default and everything in the stack is wired for it; see Using Jellyfin instead of
Plex below for the swap and what it costs you.
A ready-to-use Kometa (Plex Meta Manager) configuration is included for automated collections and overlays, but Kometa itself is not part of docker-compose.yml — see Kometa Configuration for how to run it.
Using Jellyfin instead of Plex
Plex has moved features behind Plex Pass over time. If you'd rather run
Jellyfin — free and fully open-source, no paid tier — the
stack ships a ready-to-use Jellyfin service, commented out in docker-compose.yml.
To switch:
docker compose rm -sf plex — stop and remove Plex before editing the file.
Do this first: once plex: is commented out Compose no longer knows the service
exists, so docker compose up -d won't touch the container. It keeps running on
host networking, and you end up with both media servers indexing the library —
the one thing this section exists to avoid.
- In
docker-compose.yml, comment out the entire plex: service.
- Uncomment the
jellyfin: service directly below it.
docker compose up -d. Jellyfin's web UI is at http://<host>:8096 — no claim token needed.
What still works, and what doesn't. Jellyfin serves the same media library, but
several companions in this stack talk to Plex's API specifically:
| Works with Jellyfin as-is |
Plex-only (won't work against Jellyfin) |
| Radarr, Sonarr, Prowlarr, Bazarr |
Tautulli (Plex analytics) |
| Transmission |
Watchlistarr (syncs the Plex watchlist) |
|
Kometa / Plex Meta Manager |
|
Maintainerr |
Seerr needs reconfiguring, not replacing. Seerr does support a Jellyfin backend,
but the media server is chosen during its setup and doesn't follow the compose swap. If
you already onboarded Seerr against Plex, re-point it at Jellyfin in Settings →
Media Server — otherwise approved requests keep going to a Plex server that is no
longer running, with no error to tell you so.
Because the dashboard's now-playing and poster panels read through Tautulli, those
panels are Plex-bound too. Jellyfin-native replacements (e.g. Jellystat) are a possible
future addition but aren't wired up here yet.
Content Management
| Service |
Description |
Port |
| Seerr |
Content request and management interface |
5055 |
| Radarr |
Movie management and downloading |
7878 |
| Sonarr |
TV show management and downloading |
8989 |
| Prowlarr |
Indexer manager that feeds Radarr/Sonarr |
9696 |
| Bazarr |
Subtitle management for Radarr/Sonarr libraries |
6767 |
| FlareSolverr |
Cloudflare bypass proxy for Prowlarr indexers |
8191 |
| Maintainerr |
Rule-based Plex library cleanup (auto-remove watched/aged items) |
6246 |
| Watchlistarr |
Syncs Plex watchlist to Radarr/Sonarr |
N/A |
| Decluttarr |
Removes stalled / failed downloads from *arr queues |
N/A |
| Checkrr |
Scans media files for codec / corruption issues |
8585 |
| Cleanarr |
Finds and removes duplicate content |
N/A |
| Requestrr |
Discord bot for content requests |
4545 |
Downloading
Monitoring