# Yarr Media on a NAS Yarr runs on a NAS as one container, `ghcr.io/blarkin13/yarr-media:stable` (64-bit Intel/AMD and 64-bit ARM). The NAS templates are in [`deploy/nas`](../deploy/nas): | File | Use it for | | --- | --- | | `compose.yaml` + `nas.env.example` | Synology Container Manager, QNAP Container Station, TrueNAS 24.10+, OpenMediaVault, any Docker Compose host | | `unraid/yarr-media.xml` | Unraid Docker template | | `Caddyfile` | Only for Pro remote access (`--profile remote`) | Your media share is mounted **read-only**. Yarr never changes, moves or deletes your files. It only writes to its own data folder. ## Compatibility "Template tested" means the template runs in CI as that NAS's own media user id with the media share read-only, plays a movie, an episode and a song byte for byte, transcodes, keeps its libraries when the container is re-created (the update path) and leaves the media untouched (`deploy/smoke/nas-compose.sh`, Install smoke workflow, job `nas-compose`). It is not the same as testing on the NAS itself. A platform is listed as supported only after someone has tested it on a real device. | NAS | Versions | CPUs | Template tested | Tested on a device | | --- | --- | --- | --- | --- | | Synology | DSM 7.2+ (Container Manager) | x86-64 and 64-bit ARM (Realtek RTD1296/1619B models). 32-bit ARM models can't run it. | yes (uid 1026:100) | not yet | | QNAP | QTS 5 / QuTS hero 5, Container Station 3 | x86-64 and 64-bit ARM | yes (uid 1026:100 profile, any uid works) | not yet | | Unraid | 6.12+ / 7.x | x86-64 | yes (uid 99:100) | not yet | | TrueNAS SCALE / Community Edition | 24.10 "Electric Eel" or newer (Docker apps). 24.04 and earlier use Kubernetes apps and aren't covered. TrueNAS CORE (FreeBSD) can't run it. | x86-64 | yes (uid 568:568, also on ARM) | not yet | | OpenMediaVault | 7.x with the `openmediavault-compose` plugin | x86-64 and 64-bit ARM (Raspberry Pi 4/5 with a 64-bit OS) | yes | not yet | Hardware transcoding: Intel Quick Sync (VA-API) on x86-64 images, for example Synology "+" models with Intel CPUs and most Intel QNAP models. AMD and ARM NAS CPUs convert video in software. Most playback is direct play and doesn't need conversion; a low-power NAS can usually handle one or two software conversions at a time. ## Before you start: the user id Yarr has to run as a NAS user that can **read** your media share and **write** its data folder. - **Synology**: make a user `yarr` with read-only access to the video share. Over SSH, `id yarr` shows something like `uid=1030(yarr) gid=100(users)`. - **QNAP**: same as Synology, `id yarr` over SSH. - **Unraid**: shares belong to `nobody:users`, which is `99:100`. The template already uses this. - **TrueNAS**: the built-in `apps` user is `568:568`. Give it read access to the media dataset (Datasets > Edit permissions > add `apps`, Read). - **OpenMediaVault**: the user that owns the shared folder (`id `). Make the data folder first and give it to that user, for example `sudo mkdir -p /volume1/docker/yarr-media && sudo chown 1030:100 /volume1/docker/yarr-media`. ## Synology (Container Manager) 1. Put `compose.yaml` in `/volume1/docker/yarr-media` (File Station). 2. Container Manager > Project > Create. Path: `/volume1/docker/yarr-media`. Source: use the existing `compose.yaml`. 3. Add a `.env` file next to it from `nas.env.example` (or edit the defaults in the compose file): `YARR_MEDIA_DIR=/volume1/video`, `YARR_DATA_DIR=/volume1/docker/yarr-media/data`, `YARR_UID`, `YARR_GID`. 4. Build. Open `http://:8787` and add your libraries (folders are under `/media`). ## QNAP (Container Station) Applications > Create > paste `compose.yaml`, replace the `${...}` values with your paths (for example `/share/Multimedia` and `/share/Container/yarr-media`) and user id, then Create. ## Unraid 1. Copy `unraid/yarr-media.xml` to `/boot/config/plugins/dockerMan/templates-user/`. 2. Docker > Add Container > Template: `yarr-media`. 3. Set **Media** to your media share (it stays read-only) and **Data** to `/mnt/user/appdata/yarr-media`. Apply. ## TrueNAS 24.10+ Apps > Discover Apps > ⋮ > Install via YAML. Paste `compose.yaml` with the `${...}` values replaced (`/mnt//media`, `/mnt//apps/yarr-media`, user `568:568`). Save. ## OpenMediaVault Services > Compose > Files > Add. Paste `compose.yaml`, put the values from `nas.env.example` in the Environment box, Save, then Up. ## Discovery and the apps The Google TV app looks for the server on its own home network segment at port 8787, so keep `YARR_PORT=8787` unless that port is taken. If an app doesn't find the server (another port, or the NAS on a different subnet or VLAN), type `http://:`. Port 8787 is for the home network only. **Never forward it on your router.** ## Pro remote access (optional) Remote access uses a small HTTPS front door (Caddy) that only gets a certificate for your home's own `a-b-c-d.sslip.io` name and requires a Yarr pass from yarr.media for every request from the internet ([security details](remote-access-security.md)). Most NAS web interfaces already use port 443, so: 1. Put `Caddyfile` next to `compose.yaml` and set `YARR_HTTPS_PORT` to a free port, for example `8443`. 2. Start with the remote profile: `docker compose --profile remote up -d` (Synology/QNAP/TrueNAS: add `COMPOSE_PROFILES=remote` to the environment). 3. On your router, forward **external TCP 443** to the NAS at port `8443`. 4. Pair the server in Settings > Remote Access and run the check there ([troubleshooting](remote-access-troubleshooting.md)). The Linux installer does the router step for you with UPnP. On a NAS you do it by hand, because the NAS already owns port 443. ## Updates, rollback and backup - **Update**: pull the image again and re-create the container (Synology: Project > Action > Build; QNAP: Recreate; Unraid: Check for updates > Apply update; TrueNAS/OMV: Pull, then Up). Libraries, watch history and settings live in the data folder and are kept. - **Back up before updating**: stop the container and copy the data folder. Settings > Backup also keeps watch-history backups in it. - **Roll back**: stop the container, put the copied data folder back, and set the image tag to the previous version instead of `stable` (for example `ghcr.io/blarkin13/yarr-media:0.17.31`, or `YARR_CHANNEL=0.17.31`). Every release is published under its version number. - **Uninstall**: remove the project or container and delete the data folder. Your media share is never changed.