Self-hosted server that finds, downloads, imports, subtitles and transcodes movies and TV for a Jellyfin library. It replaces Sonarr, Radarr, Bazarr, Seerr and Tdarr. qBittorrent (5.2 or newer) and Prowlarr stay as they are. GPU work runs on agents.
Two images:
| Image | Platforms | Contents |
|---|---|---|
ghcr.io/bwees/magpie |
amd64, arm64 | Server, web UI, ffmpeg/ffprobe for probing. Never transcodes. |
ghcr.io/bwees/magpie-agent |
amd64 | Agent, jellyfin-ffmpeg, whisper.cpp (Vulkan). One tag for NVIDIA, Intel and AMD. |
- Copy
deploy/compose.yamlanddeploy/.env.example(as.env) into a folder. - In
.env, setMAGPIE_AGENT_SECRET(openssl rand -hex 32) andMEDIA_DIR. Downloads and the library must sit underMEDIA_DIRso imports are hardlinks. - In
compose.yaml, uncomment the agent's GPU block for your vendor (see GPUs). docker compose up -d- Open
http://<host>:3000. The setup wizard asks for:- Local admin
- TMDB key
- qBittorrent (
http://qbittorrent:8080, an API key from qBittorrent's Web UI settings) - Prowlarr (
http://prowlarr:9696, its API key) - Jellyfin
- Library paths (
/media/library/movies,/media/library/tv) - Quality preset
- Wanted languages
- OpenSubtitles login
- Transcode target
- Optional import from Sonarr/Radarr
The agent in the example connects on its own. It shows up under Settings → Agents.
Only these are set on the containers. Everything else is in the UI.
| Variable | Image | Default | Use |
|---|---|---|---|
MAGPIE_PORT |
server | 3000 |
HTTP port |
MAGPIE_DATA_DIR |
server | /data |
SQLite, backups, image cache. Must be local disk, not NFS/SMB. |
MAGPIE_BASE_URL |
server | none | Public URL for links |
MAGPIE_AGENT_SECRET |
both | required | Shared secret, at least 32 characters. The server won't start without it. |
MAGPIE_URL |
agent | required | Server URL the agent dials |
MAGPIE_AGENT_NAME |
agent | hostname | Name in the UI (a-z, 0-9, -) |
MAGPIE_SCRATCH_DIR |
agent | /scratch |
Working space and the agent's ID. Mount it as a volume. |
MAGPIE_AGENT_CPU |
agent | false |
Also offer the software encoders, for testing without a GPU |
Settings → Agents has the secret and a ready-made docker run. Agents need to reach the server over the LAN or a tailnet; they read and write media only through it.
NVIDIA (needs the NVIDIA Container Toolkit):
docker run -d --name magpie-agent --restart unless-stopped \
--gpus all \
-e MAGPIE_URL=http://magpie.lan:3000 \
-e MAGPIE_AGENT_SECRET=<secret> \
-v magpie-agent-scratch:/scratch \
ghcr.io/bwees/magpie-agent:latestIntel or AMD:
docker run -d --name magpie-agent --restart unless-stopped \
--device /dev/dri \
--group-add "$(getent group render | cut -d: -f3)" \
-e MAGPIE_URL=http://magpie.lan:3000 \
-e MAGPIE_AGENT_SECRET=<secret> \
-v magpie-agent-scratch:/scratch \
ghcr.io/bwees/magpie-agent:latestOn start the agent test-encodes on every GPU it sees and reports what passed. Settings → Agents shows each device's results.
- NVIDIA: the image sets
NVIDIA_DRIVER_CAPABILITIES=compute,video,utility,graphics.videois needed for NVENC/NVDEC andgraphicsfor Whisper's Vulkan backend. If you override it, keep both. - Intel/AMD: pass
/dev/dri(or onerenderD*node) and add the host'srendergroup. The group ID differs between hosts. - Linux only. Docker Desktop on macOS can't pass a GPU through.
- A snapshot of the database goes to
<data>/backupsevery day (03:00, keep 7, both changeable in Settings → General) and before every migration. - Settings → General can back up now, list snapshots and restore one. The server restarts after a restore.
- Upgrading is pulling a newer image. Migrations run at startup after a snapshot. If one fails, the server doesn't start and the snapshot stays.
Tools come from mise: mise install, then mise run install:web.
| Task | Does |
|---|---|
mise run dev |
Server with live reload plus the web dev server |
mise run lint, check, test, build |
The CI checks |
mise run openapi |
Regenerate server/openapi.json and the web client |
mise run release:snapshot |
Build binaries and load both images locally |
mise run smoke |
Run the snapshot images with a CPU agent and check it comes online |
release-please keeps a release PR open on main from the conventional commits. Merging it tags the version and creates the GitHub release; GoReleaser then attaches the binaries and pushes ghcr.io/bwees/magpie and ghcr.io/bwees/magpie-agent.
GPL-3.0. The agent image bundles jellyfin-ffmpeg (GPL-3.0) and whisper.cpp (MIT).