Install Plex on TrueNAS Scale

Install Plex Media Server on TrueNAS SCALE with Docker, set up library paths that match Radarr and Sonarr, and turn on hardware transcoding and remote access.

A Mohammed Habib Sep 15, 2026 10 min read 135 views Updated Oct 24, 2026
Cover for Install Plex on TrueNAS Scale

In this guide I install Plex Media Server on TrueNAS SCALE as a Docker app. When you're done, Plex will index the movies, TV shows and music on your NAS, fetch posters and descriptions, and stream them to your TV, phone and browser, at home or away.

What you need

  • A TrueNAS SCALE server that's already installed, with a storage pool. If you're not there yet, start with my TrueNAS install guide.
  • TrueNAS SCALE 24.10 (Electric Eel) or newer. That's the release where apps run on Docker and you can paste a Docker Compose file.
  • A free Plex account from plex.tv.
  • A folder (dataset) for your media, such as /mnt/media, and one for app settings, such as /mnt/apps. On your system the paths will include your pool name, for example /mnt/tank/media. Use your own paths everywhere you see mine.
  • Optional: a Plex Pass subscription if you want hardware transcoding.
  • Optional but recommended: the rest of the media stack. qBittorrent, Prowlarr, Radarr and Sonarr fetch and sort the files that Plex plays. The media stack guide shows how they all connect.

What it is

Platform TrueNAS Scale (Docker custom app)
Ports 32400 (web UI), 1900 (DLNA), 8324 (companion)
Image lscr.io/linuxserver/plex:latest
Config path /mnt/apps/plex/config → /config
Media path /mnt/media → /media
License Plex Pass (optional, for hardware transcoding)

A few terms come up again and again:

  • Container: a packaged app that runs isolated from the rest of the system. Plex runs inside one.
  • Image: the template a container is built from. Here it's the LinuxServer.io build of Plex, lscr.io/linuxserver/plex.
  • Mount (or volume): a folder on the NAS that you make visible inside the container. The left side of /mnt/media:/media is the NAS path, the right side is what the app sees.
  • Transcoding: converting a video on the fly into a format and size the playing device can handle.

Plex scans your media folders, downloads metadata (posters, cast, plot summaries) and serves it all to Plex apps on your devices. When a device can't play the original file, Plex transcodes it. A 4K HEVC movie might get converted to 1080p H.264 for a phone on a slow connection.

The LinuxServer.io image runs Plex as a headless server (no screen or desktop, you control it from a browser). It supports hardware transcoding with Intel Quick Sync or NVIDIA GPUs.

The hard part: library paths and metadata storage

The install takes about five minutes. The part that trips people up is the folder paths. Plex needs to see the same files that Radarr and Sonarr organize.

PACKET ANALYSIS
Correct mount structure
Plex library paths
/media/movies, /media/tv, /media/music
Wrong mount structure

The common mistake is mounting media differently in each container. Each container only knows the paths it was given. If Radarr thinks movies live at /movies and Plex looks in /media/movies, the two apps can't agree on where a file is. Mount the same base folder the same way in every container and use the same subfolders.

PACKET ANALYSIS
Consistent mount pattern
Base
/mnt/media → /media (same in every container)
Plex
watches /media/movies, /media/tv
Radarr
writes to /media/movies
Sonarr
writes to /media/tv

How to install it

Step 1: Create the folders

Open System → Shell in the TrueNAS web UI (or SSH in) and create the config folder plus the media subfolders:

mkdir -p /mnt/apps/plex/config
mkdir -p /mnt/media/movies /mnt/media/tv /mnt/media/music

Check it worked: ls /mnt/apps/plex should list config.

Step 2: Get a claim token (optional)

A claim token is a short code that links a new Plex server to your Plex account. Visit plex.tv/claim while signed in and copy the code. It expires within 4 minutes, so get it right before you deploy. If you skip this, you can still claim the server by signing in through the web UI in Step 4.

Step 3: Deploy the app

In TrueNAS, go to Apps → Discover Apps, open the three-dot menu at the top right and choose Install via YAML. Give the app a name (plex) and paste this:

services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - VERSION=docker
      - PLEX_CLAIM=  # Optional: claim token from https://plex.tv/claim
    network_mode: host
    volumes:
      - /mnt/apps/plex/config:/config
      - /mnt/media:/media

What the settings mean:

  • PUID and PGID are the user and group IDs Plex runs as. That user needs read access to your media folders and write access to the config folder.
  • TZ is your time zone. Change Europe/London to yours.
  • VERSION=docker lets the image control the Plex version. You update Plex by updating the image.
  • network_mode: host puts Plex directly on the NAS's network instead of a private Docker network. Plex needs this for DLNA discovery and its companion app protocol. With bridge networking, devices on your LAN can't find Plex automatically.

Click Install.

Check it worked: the app shows as Running on the Apps screen. From the shell you can also look for the startup line in the logs (prefix with sudo if you're not root):

# Check server status:
docker logs plex 2>&1 | grep "Started"

Step 4: Sign in and add libraries

Open http://<nas-ip>:32400/web, replacing <nas-ip> with your NAS's address, and sign in with your Plex account. The setup wizard asks you to name the server and add libraries.

  1. Add Library
  2. Click Add Library and pick a type (Movies, TV Shows, Music)
  3. Click Browse for Media Folder and go to /media/movies (or /media/tv)
  4. Click Add

  5. Scan Library

  6. Plex scans your library and downloads metadata
  7. First scan of a large library takes 10–30 minutes
  8. Later scans only look at what changed

  9. Settings → Transcoder

  10. Enable hardware transcoding if you have an NVIDIA GPU or Intel Quick Sync (see the next section)
  11. Leave Transcoder quality on "Automatic" for most setups

  12. Settings → Library

  13. Enable Scan my library automatically
  14. Enable Scan my library periodically and pick an interval. The shortest option is every 15 minutes.
  15. This picks up new files added by Radarr/Sonarr

Check it worked: open a library. Your titles should show posters and descriptions. If the library is empty, jump to Troubleshooting.

Step 5: Hardware transcoding (optional)

Plex can use your GPU to transcode, which takes a big load off the CPU. You need two things: an active Plex Pass, and the GPU passed into the container.

  • Intel Quick Sync: add the GPU device to the compose file, at the same indent level as volumes::
    devices:
      - /dev/dri:/dev/dri
  • NVIDIA: the GPU must be available to containers through the NVIDIA container runtime, and the container needs NVIDIA_VISIBLE_DEVICES=all. The LinuxServer.io README covers the details.

Then turn on Use hardware acceleration when available under Settings → Transcoder.

Check it worked: play something at a lower quality than the original and open the Plex dashboard. A transcoding stream that uses the GPU is marked "(hw)".

Configuration that matters

Library paths

Library Container path Host path
Movies /media/movies /mnt/media/movies
TV Shows /media/tv /mnt/media/tv
Music /media/music /mnt/media/music

Transcoding

Setting Recommended value Why
Hardware transcoding Enable if GPU available Moves heavy transcoding work off the CPU
Transcoder quality Automatic Balances quality and performance
Maximum simultaneous video transcode 2–4 (depends on GPU) Prevents GPU overload

Remote access

Remote access lets you stream when you're away from home. Plex walks you through it under Settings → Remote Access.

Setting Value
Port 32400 (forward on your router)
Manual public port 32400
Secure connections Required
Custom URL https://plex.your-domain.com:32400

Port forwarding means telling your router to send outside traffic on one port to a device inside your network. If remote access fails, check that port 32400 is forwarded to the NAS IP. Plex can try to open the port automatically with UPnP, but a manual forward is more reliable.

Metadata

Setting Recommended value Why
Metadata agent Plex Movie (default for new movie libraries) Plex pulls metadata from several sources for you
Prefer local metadata Off Online metadata is more complete

Troubleshooting

The library is empty after adding a folder. Check the path inside the container, not on the NAS. Run docker exec plex ls /media/movies. If that's empty or errors, the mount in the compose file is wrong. If it lists files but Plex shows nothing, the PUID/PGID user probably can't read the folder. Fix the dataset permissions in Datasets → Edit Permissions.

New downloads don't appear. Radarr or Sonarr is writing to a path Plex doesn't watch. Compare the paths in each app against the table above. Network-mounted folders often don't trigger automatic scans, so keep the periodic scan on.

The server doesn't show up for claiming. Sign in from a browser on the same network as the NAS, or set a fresh PLEX_CLAIM token and redeploy within 4 minutes of getting it.

Remote access shows "Not available outside your network". The port forward is missing or points to the wrong IP. Some ISPs use CGNAT (one public IP shared between many customers), which blocks incoming connections no matter what you set on your router.

Playback stutters. Open the Plex dashboard while playing. If it says "Transcode" and the CPU is maxed, enable hardware transcoding or lower the number of simultaneous transcodes.

What I'd tell anyone building this

  • The media path must be identical across all containers. If Plex watches /media/movies and Radarr writes to /movies, Plex will not see new files. Mount the same base path (/mnt/media → /media) in every container.

  • Use network_mode: host on TrueNAS Scale. Bridge networking breaks DLNA discovery, the Plex companion protocol and automatic client detection. Host mode is the easiest way to avoid connection problems.

  • Hardware transcoding is worth the setup. A single 4K HEVC transcode uses 80–100% of a modern CPU. With an NVIDIA GPU or Intel Quick Sync, the same transcode uses 10–20% of the GPU. You need Plex Pass and the GPU passed into the container.

  • Claim the server right away. Until it's claimed, your server isn't linked to your Plex account and won't show up in your Plex apps. A token from https://plex.tv/claim is only valid for 4 minutes.

  • The first library scan is slow. A library with 500+ movies takes 15–30 minutes to scan and download metadata. Do not interrupt it. The scan resumes on restart, but the metadata cache is lost.

Next steps

  • Install Tautulli to see who is watching what.
  • Install Jellyseerr so family and friends can request movies and shows.
  • Add Bazarr for automatic subtitles.

Get it

Links:

Quick install (Docker Compose):

services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - VERSION=docker
      - PLEX_CLAIM=  # paste claim token from https://plex.tv/claim
    network_mode: host
    volumes:
      - /mnt/apps/plex/config:/config
      - /mnt/media:/media

Open http://<nas-ip>:32400/web, add your libraries, and start streaming.

Comments (0)

Join the discussion — sign in to comment.

Sign in

No comments yet — be the first to share your thoughts.

Related reading