Open beta Leyla is free until December 31, 2026. Preorder at founders’ prices

Download

A media server on a NAS or a Raspberry Pi

A NAS is where most home film libraries already live, so it is the natural place to run the media server too. Any NAS that runs Docker can run Plex, Jellyfin, Emby or Leyla. What decides how well it goes is whether the chip inside has graphics for transcoding, and whether your screens can play your files directly so it rarely needs to.

Which NAS can run a media server

Inside the NASExamplesWhat to expect
Intel with graphicsSynology "+" models with Intel Celeron (DS224+, DS423+, DS920+), QNAP Intel models, N100 boxesDirect play and hardware transcoding through Quick Sync. The best all-round choice.
AMD Ryzen without graphicsSynology DS923+, DS1522+Direct play and remux are fine; transcoding runs on the CPU, and /dev/dri does not exist.
ARMEntry Synology and QNAP models, Raspberry Pi 4 and 5Direct play and remux only, in practice. Fine when every screen plays your files.
A PC you builtUnraid, TrueNAS Scale, OpenMediaVaultWhatever the CPU and GPU allow; an Intel CPU with graphics or an NVIDIA card covers everything.

If you are buying for a media server, pick a model with an Intel CPU that has integrated graphics. Hardware transcoding explains what it buys you.

Docker on a NAS: the parts that trip people up

  • PUID and PGID. The container runs as a user. Set it to one that can read your media, or the library scans empty. Run id over SSH to find yours: on a Synology usually 1026 and 100, on Unraid 99 and 100, on TrueNAS the apps user is 568, on OpenMediaVault the first user is usually 1000 and 100.
  • Media mounted read-only. A media server only needs to read films. Mount them with :ro.
  • The GPU. Map /dev/dri for Intel or AMD graphics only where it exists; the container will not start otherwise.
  • TVs that cannot find the server. Discovery on the home network (DLNA and app server lists) does not cross Docker's default bridge network. Use network_mode: host or a macvlan network.
  • The database on fast storage. Keep the server's data folder on an SSD or SSD cache when you can; the films can sit on spinning disks.

Per NAS system

  • Synology DSM 7.2 and later: Container Manager from Package Center, then a Project with a compose file.
  • QNAP QTS 5 and QuTS hero: Container Station from the App Center; paths start with /share/.
  • Unraid: a container template, from Community Applications or added by hand; NVIDIA through the Nvidia-Driver plugin.
  • TrueNAS Scale 24.10 and later: Apps, Install via YAML, with datasets for data and media.
  • OpenMediaVault 7: the openmediavault-compose plugin from omv-extras.
  • Raspberry Pi 4 or 5: a 64-bit OS and Docker; keep the database on an SSD rather than the SD card.

Plex, Jellyfin and Emby also ship native packages for several of these. Leyla runs on each in Docker, and Install the server has its steps for every one, with the folders and numbers above. Docker on Linux is tested on real hardware; the others follow each maker's documented steps.

Leyla on a small box

We make Leyla, and it is written for hardware like this: a NAS, a Raspberry Pi, an old PC with spinning disks. Its database comes inside the container, so there is nothing else to install. A first scan shows titles first, then makes them playable, then fetches posters, so the library is usable long before the scan ends. Scrub previews are made only when someone drags (why that saves tens of gigabytes), drives are left asleep when nobody is watching, and background work keeps to the hours you set.

Questions

Which Synology is best for a media server?

A "+" model with an Intel Celeron, such as the DS224+ or DS423+, because its graphics can transcode. The AMD Ryzen models, such as the DS923+, have no graphics and transcode only on the CPU.

Can a Raspberry Pi be a media server?

Yes, when your screens play your files directly. It serves and remuxes well, but it cannot convert 4K, and the Pi 5 has no hardware video encoder.

Should the media server run on the NAS or a separate PC?

On the NAS if it has an Intel CPU with graphics or your screens direct play. On a separate mini PC, such as an Intel N100, reading the NAS's share, if the NAS is ARM or AMD without graphics and you need transcoding.

Why does my library scan empty in Docker?

Usually PUID and PGID belong to a user that cannot read the media folder, or the media path in the compose file does not match the folder on the NAS.

Sources

Something wrong or out of date here? Tell us.