Guide Getting started
Install with Docker on Linux or Windows
Run Flexarr's Docker image on a Linux machine, or on Windows through Docker Desktop and WSL 2, with docker run or Docker Compose.
On Linux and Windows, Flexarr runs as a Docker container. The image is ghcr.io/danleach-glitch/flexarr, built for 64-bit Intel/AMD (amd64) and 64-bit ARM (arm64), so it also runs on a Raspberry Pi 5 with a 64-bit operating system. There's no native Windows build: on Windows, use Docker Desktop.
What the container needs
| Inside the container | What to give it | |
|---|---|---|
| Port | 8383 |
Publish it as 8383 on the host. |
| Settings | /config |
A folder (or Docker volume) for Flexarr's settings, database and caches. Keep it: it's your whole setup. |
| Media | /data/media (your choice) |
Your media folder. Mount it at the same path Sonarr, Radarr and Lidarr use, so the paths they report match what Flexarr sees. |
The latest tag is always the newest release. To upgrade only when you choose, use a version instead, such as ghcr.io/danleach-glitch/flexarr:0.57. See Which tag to use.
Linux
Permissions
Flexarr runs as user ID 1654 unless you tell it otherwise. It needs to write to its settings folder and read your media, so the simplest way is to run it as the user who owns your media with PUID and PGID, as with Sonarr, Radarr and Lidarr. Find your IDs with id:
id
# uid=1000(you) gid=1000(you) ...
When it starts, Flexarr gives its settings folder to that user, so it doesn't matter if Docker created the folder as root.
Note Docker's
--useroption (user:in Compose) works too, in place ofPUIDandPGID. The container then changes no owners, so create the settings folder yourself first (mkdir -p ~/flexarr/config) so it belongs to you.
docker run
docker run -d --name flexarr --restart unless-stopped \
-e PUID=1000 -e PGID=1000 \
-p 8383:8383 \
-v ~/flexarr/config:/config \
-v /path/to/media:/data/media \
ghcr.io/danleach-glitch/flexarr:latest
Tip You can keep the settings in a named Docker volume instead, with
-v flexarr-config:/config.
Docker Compose
Save this as docker-compose.yml and run docker compose up -d in the same folder.
services:
flexarr:
image: ghcr.io/danleach-glitch/flexarr:latest
container_name: flexarr
environment: [PUID=1000, PGID=1000]
ports: ["8383:8383"]
volumes:
- ./config:/config
- /path/to/media:/data/media
restart: unless-stopped
If Sonarr, Radarr and Lidarr are in the same Compose file, give them the same media mount (/path/to/media:/data/media). They can then reach Flexarr at http://flexarr:8383 for webhooks.
Found on your network
The Apple TV, iPhone and iPad list servers that announce themselves on the Wi-Fi. Docker's own network doesn't pass the announcement on, so to have Flexarr listed, run it on the host's network: --network host in place of -p 8383:8383 with docker run, or in Compose:
network_mode: host
in place of the ports: line. Flexarr is then at port 8383 on the computer itself. Without it, everything still works; in the apps, choose Enter an address instead and type http://<server>:8383.
Note On the host's network, other containers in the Compose file can't reach Flexarr as
http://flexarr:8383. Use the computer's address instead, orhttp://host.docker.internal:8383withextra_hosts: ["host.docker.internal:host-gateway"]on those containers.
Hardware transcoding
Flexarr converts video on the processor unless you pick something else in Settings › Streaming › Hardware acceleration. On Linux, Automatic means the processor. The menu lists only what the container can use. The Apple apps play most files directly, so many homes rarely need conversion at all.
Intel and AMD graphics. The image includes the VA-API drivers: AMD's on both amd64 and arm64, Intel's (with Quick Sync) on amd64 only. Pass the graphics device into the container, with --device /dev/dri for docker run or this under the service in Compose:
devices:
- /dev/dri:/dev/dri
Flexarr joins the device's group by itself. Then VA-API (Intel and AMD on Linux), and on Intel Intel Quick Sync, appear in Settings › Streaming. Choose one and play something that needs converting. If it fails, set it back to Automatic.
Note With
--userin place ofPUID, Flexarr can't join the device's group by itself. Add it with--group-add(group_add:in Compose), using the group number fromls -n /dev/dri.
NVIDIA works too, because the NVIDIA Container Toolkit supplies the driver libraries to the container. With the toolkit installed on the host, add runtime: nvidia to the service in Compose, and two variables to its environment: list:
runtime: nvidia
environment: [PUID=1000, PGID=1000, NVIDIA_VISIBLE_DEVICES=all, "NVIDIA_DRIVER_CAPABILITIES=compute,video,utility"]
With docker run, that's --runtime nvidia -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility.
Then choose NVIDIA NVENC in Settings › Streaming and play something that needs converting. If it fails, set it back to Automatic.
Windows
Install Docker Desktop and keep its default WSL 2 backend. It asks to install WSL if you don't have it.
In Docker Desktop's settings, turn on Start Docker Desktop when you sign in, so Flexarr comes back after a restart.
Make a folder, say
C:\flexarr, and save this in it asdocker-compose.yml:services: flexarr: image: ghcr.io/danleach-glitch/flexarr:latest container_name: flexarr ports: ["8383:8383"] volumes: - flexarr-config:/config - D:/Media:/data/media restart: unless-stopped volumes: flexarr-config:Change
D:/Mediato where your media is, with forward slashes.Open PowerShell in that folder and run
docker compose up -d.
The apps don't find a server in Docker Desktop by themselves. In the app, choose Enter an address instead and type the PC's IP address, such as http://192.168.1.20:8383. If nothing connects, check that Windows' firewall lets other devices reach port 8383.
Performance on Windows
Docker Desktop runs Linux containers inside WSL 2. Files on your Windows drives (C:, D:, which WSL sees as /mnt/c, /mnt/d) are reached across a bridge between Windows and Linux, which is much slower than Linux's own disk. Playback is usually fine, but library scans are slower, and a database there is slow and can be unreliable.
That's why the Compose file above keeps /config in a Docker volume (flexarr-config), which lives inside WSL 2, and only your media on a Windows drive. Don't change /config to a folder like C:\flexarr\config.
Note Your media can stay on any Windows drive, including a second internal disk. A network share mapped to a drive letter usually isn't visible to containers this way. If your media is on a NAS, consider running Flexarr on the NAS itself.
Hardware transcoding on Windows
Flexarr converts on the processor. Docker Desktop can pass an NVIDIA graphics card through to containers, so the NVIDIA steps above may work, with gpus: all under the service in place of runtime: nvidia. Intel and AMD graphics aren't available to containers on Windows.
Next: set it up
Look at the container's log (docker logs flexarr, or Logs on the container in Docker Desktop). It says This server isn't set up yet. Set it up at http://localhost:8383/#setup=…. Open that link: on the computer running Docker it works as it is, and from another computer put the server's name or IP address in place of localhost. The page has the setup code filled in, so you only choose a PIN. The first browser to do it becomes the new server's owner. Carry on with First setup.