guides

Getting Started with Your Synology: Installing Plex

A Synology DiskStation NAS unit
A Synology DiskStation NAS. Photo: DYVER, CC BY-SA 4.0.

Plex, which is what we actually run on our own media server. This uses Container Manager’s Project feature. If you’re still on the older Docker package instead of Container Manager, the same compose file works, you’ll just paste it into a single-container setup a bit differently.

Written for DSM 7.2 and the official plexinc/pms-docker image. Plex’s setup flow changes rarely enough that this should hold up a while. We’ll flag it here if that stops being true.

Step 1. Make the folders

In File Station, create a docker/plex folder and a config folder inside it. Keep this off the same volume as your actual media if you can. Separating Plex’s config and database from the media library makes both easier to back up on their own schedule.

Step 2. Get a claim token

Go to plex.tv/claim while logged into your Plex account. It hands you a token starting with claim- that’s good for four minutes. Copy it right before you deploy the container, not ten minutes ahead.

Step 3. The compose file

In Container Manager → Project → Create, point it at the docker/plex folder and paste this in, adjusting the two volume paths to match where your media actually lives:

services:
  plex:
    image: plexinc/pms-docker:latest
    container_name: plex
    network_mode: host
    environment:
      TZ: America/Chicago
      PLEX_CLAIM: claim-xxxxxxxxxxxxxxxxxxxx
      ADVERTISE_IP: http://YOUR_NAS_IP:32400/
    volumes:
      - /volume1/docker/plex/config:/config
      - /volume1/media:/data
    restart: unless-stopped
network_mode: host is what Plex wants here. It leans on local network discovery (GDM) so other devices find the server automatically, and that doesn’t work cleanly behind Docker’s normal port mapping. It also means Plex’s ports sit directly on the NAS, so this isn’t the container to experiment with on an internet-facing box.

Step 4. Deploy, then finish in the browser

Deploy the project, wait for the container to report healthy, then hit http://YOUR_NAS_IP:32400/web. The claim token should already have tied it to your Plex account. From there it’s normal Plex library setup: point it at the /data path you mapped, name your libraries, let it scan.

Step 5. Hardware transcoding, if your NAS has it

If your Synology model has a supported hardware encoder, Plex Pass unlocks hardware transcoding. That matters the moment more than one device is streaming something that needs converting on the fly. Check Synology’s compatibility list for your specific model first. Not every NAS in the current lineup has one.

Step 6. Name your files so the scanner can match them

Most “Plex didn’t find my media” problems are naming. The scanner matches titles against online metadata, and it needs a title and a year to do it reliably.

One folder per film, year in brackets:

/data/movies/Arrival (2016)/Arrival (2016).mkv

Shows get a folder, then seasons:

/data/tv/Severance/Season 01/Severance - s01e03.mkv

The year disambiguates remakes, and the s01e03 pattern is what the episode matcher reads. Give each library one content type when you create it. A single library holding both films and TV is the other common reason matching goes wrong.

Step 7. Find out whether you’re transcoding

Worth knowing before you pay for anything. Play something, then open Settings → Status → Now Playing on the server.

Each stream is labelled Direct Play, Direct Stream or Transcode.

  • Direct Play sends the file untouched. Nearly free, and what you want.
  • Direct Stream rewraps the container without re-encoding video. Cheap.
  • Transcode re-encodes video in real time. This is the one that pins a NAS CPU and makes everything else on the box slow.

Test the worst case you actually have, which usually means the oldest TV in the house or a phone on mobile data from outside. If that still direct plays, hardware transcoding is a subscription you don’t need.

When it does transcode, the cause is nearly always the client not supporting the codec, image-based subtitles that have to be burned into the picture, or a quality cap set in the client that the server is obeying.

When it doesn’t work

The server never appears in your account. The claim token expired. It’s valid for four minutes, so if the container took a while to come up, the token was dead before Plex used it. Get a fresh one and redeploy.

Libraries scan and find nothing. Permissions on the media path. The container needs read access and Synology’s shared folder permissions don’t grant it automatically. Check the folder in DSM before suspecting the volume mapping.

Other devices on the network can’t see the server. This is why the compose file uses network_mode: host. Plex relies on local discovery that doesn’t survive Docker’s normal port mapping. If you changed that line, change it back.

Playback is fine locally and bad remotely. That’s transcoding for bandwidth, not a network fault. Check Now Playing while it happens and you’ll see it.

Because network_mode: host puts Plex’s ports directly on the NAS, this is not a container to experiment with on an internet-facing box. Plex’s own remote access is the supported path, and a VPN is the safer one. There is a recent and expensive example of what exposure costs.

Landed on Plex? Skip ahead to Backups and Snapshots →. Curious what Jellyfin looks like without committing to it? That guide’s here.

root@labs:~$ subscribe

New posts, once a week

One email on Sunday morning with what we published that week. No tracking pixel, and unsubscribing is one click.

Leave a comment

Your email address will not be published. Required fields are marked *