Guide Getting started
Install on Unraid
Add Flexarr to Unraid as a Docker container by hand, with its appdata folder, your media share and the right user.
On Unraid, Flexarr runs as a Docker container. There's no Community Applications template for it yet, so you add the container by hand. It takes a few minutes and you only do it once.
Before you start
- Make sure Docker is enabled, under Settings › Docker.
- Know where your media lives, for example the
datashare at/mnt/user/data/media. If you run Sonarr, Radarr and Lidarr on this server, look at the media path in their containers' settings: you'll give Flexarr the same one.
Add the container
Go to the Docker tab and click Add Container at the bottom of the page.
Fill in the top of the form:
- Name:
flexarr - Repository:
ghcr.io/danleach-glitch/flexarr:latest - Network Type:
Host, so the Apple TV and iPhone apps find Flexarr by themselves.Bridgeworks too, but then you type the server's address in the apps.
- Name:
Switch the form to the advanced view with the Basic View toggle at the top right, and fill in:
- WebUI:
http://[IP]:[PORT:8383]/
- WebUI:
Add the port, the settings folder, your media and the user to run as with Add another Path, Port, Variable, Label or Device at the bottom, one at a time:
Config Type Name Container Host Port Web UI 83838383Path Config /config/mnt/user/appdata/flexarrPath Media /data/media/mnt/user/data/mediaVariable PUID PUID99Variable PGID PGID100Change the media paths to match yours. The container path should be the one your *arrs use inside their containers. With Network Type
Host, leave out the Port row: Flexarr is at port 8383 on the server itself.Click Apply. Unraid downloads the image and starts Flexarr.
Why PUID 99 and PGID 100
They run Flexarr as Unraid's usual nobody:users, the owner of files on your shares and in appdata, so it can write its settings and read your media. If your other containers use a different PUID and PGID, use those numbers instead. Flexarr gives appdata/flexarr to that user when it starts.
Media paths
Sonarr, Radarr and Lidarr tell Flexarr where each new file is. When all of them see your media at the same container path (here /data/media), those paths match and new downloads appear straight away. If they don't, map one to the other in Settings › Connections › Media folders. See Media paths.
Hardware transcoding
Flexarr converts video on the processor by default. On Linux, Settings › Streaming › Hardware acceleration › Automatic means the processor.
Intel and AMD graphics. The image includes the drivers. Edit the container and add a Device with /dev/dri as its value, then apply. 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.
NVIDIA graphics may work, because Unraid's NVIDIA driver supplies the libraries to the container. This is untested, so treat it as an experiment:
- Install the Nvidia Driver plugin from the Apps tab and reboot if it asks.
- Edit the Flexarr container. Add
--runtime=nvidiato Extra Parameters. - Add two Variables:
NVIDIA_VISIBLE_DEVICESset toall(or your card's ID from the plugin's page), andNVIDIA_DRIVER_CAPABILITIESset tocompute,video,utility. - Apply, then choose NVIDIA NVENC in Settings › Streaming and play something that needs converting. If it fails, set it back to Automatic.
Note Conversion matters less than you might think. The iPhone, iPad and Apple TV apps play most files directly, so the server mainly converts for web browsers, quality-limited streams away from home and some downloads.
Updating
The Docker tab shows when a newer Flexarr image is available. Click apply update under the container to move to it. Your settings stay in appdata/flexarr. See Updating.
Next: set it up
Click Flexarr's icon in the Docker tab and choose Logs. It says Set it up at http://localhost:8383/#setup=…. Copy that link into a browser on your home network, putting your Unraid server's name or IP address in place of localhost. The page has the setup code filled in, so you only choose a PIN and choose Set up Flexarr: the first browser to do it becomes the new server's owner. (Opening WebUI instead works too; then type the code from the log.) Carry on with First setup.