Plex is a media server software that allows users to organize, manage, and stream their personal media library, such as movies, TV shows, music, and photos, to a variety of devices including smart TVs, streaming devices, gaming consoles, and mobile devices. Plex is available as a free software and also as a paid service (Plex Pass) that provides additional features such as live TV and DVR, parental controls, and multi-user support. With Plex, users can easily access their media library from anywhere in the world, and it supports features such as auto-tagging, automatic subtitle downloading, and integration with a wide range of third-party services.
Before we start, please ensure you have Docker installed. This can be installed through the Synology Package Center.
We now need to create the Plex Docker folder. Head into File Station and open the Docker folder. Select Create, choose Create folder and name it plex.
We will now head into Control Panel > Task Scheduler > Create > Scheduled Task and click User-defined script. (see demonstration)
In the window that appears, insert the following:
In the General tab, In the Task field, enter Plex. From the User list, select root. Uncheck the Enabled option.
In the Schedule tab, Select Run on the following date (make sure It’s today’s date). Now select Do not repeat.
In the Task Settings tab, under Notification, You can choose to turn this on, otherwise skip this. Now copy-paste the following code into the Run command area. Now click OK.
docker run -d --name=plex \ --net=host \ -e PUID=1026 \ -e PGID=100 \ -e VERSION=docker \ -e PLEX_CLAIM= `#optional` \ -v /volume1/docker/plex:/config \ -v /volume1/data/media:/data \ --restart unless-stopped \ lscr.io/linuxserver/plex
Important: Make sure you change the PUID, PGID values to match your own. Please ensure you also change (data/media) to match your download/media directory.
When the below warning appears, press OK.
You will now see your list of tasks. Select Plex, now press Run.
When asked to run, press Yes.
The installation process has now finished. Give it a few seconds to appear in your Docker list.
Open your browser and enter the link to your new container http://synologyip:32400/web
Follow the on-screen prompts to complete your Plex installation and add your media folders. See the screenshots below:
Docker Compose and Portainer
If you would prefer to install with Docker Compose or Portainer, use the following code. You can also view a demonstration here.
version: '3.3' services: linuxserver: container_name: plex network_mode: host environment: - PUID=1026 - PGID=100 - VERSION=docker volumes: - '/volume1/docker/plex:/config' - '/volume1/data/media:/data' restart: unless-stopped image: lscr.io/linuxserver/plex
Actual AdGuard airsonic Audiobookshelf autobrr Bitcoin Calibre-Web Cleanarr Composerize Crypto DailyTxT deemix Deluge Emby Ethereum Euterpe FileBot FilePizza FileZilla Flame Focalboard FreshRSS Grafana Grocy Heimdall Homarr Home Assistant Homebridge Jackett Jellyfin Jellyseerr Joplin Kavita Komga LanguageTool LibreOffice Lidarr Mealie MediaGoblin Medusa Memegen Minecraft Minecraft Bedrock MQTT MusicBrainz MyMediaForAlexa Navidrome Node-RED NZBGet NZBHydra Ombi Overseerr PaperlessNGX Pashword Password Cards Petio Pi-Hole Picard Plex Portainer PostgreSQL Prowlarr PUID & PGID pwndrop Radarr Radicale Readarr ruTorrent SABnzbd SearX Seed Phrase Shiori Sonarr SpeedTest Stash Storm Tailscale TasmoAdmin Tautulli Theia Trilium TubeSync Unpackerr Uptime Kuma Vaultwarden Watchtower WebPDF Whisparr Wordle YouTubeDL