Plex Media Server Setup Guide - ajgillis04/GillisDockerDepot GitHub Wiki

Plex Media Server Setup Guide

Introduction

Plex Media Server is a digital media server that allows you to organize, stream, and share your personal media collection.

Prerequisites

  • Docker installed
  • Plex Media Server container running in your Docker stack
  • Plex account

Configuration Steps

Step 1: Accessing the Plex UI

  1. Open your browser and navigate to http://<your-ip-address>:32400/web.
  2. Log in with your Plex account credentials.

Step 2: Initial Setup Wizard

  1. Follow the initial setup wizard to configure basic settings.
  2. Ensure you server is named correctly and allow access to media outside my home is enabled. Next

Plex Server Setup

Step 3: Adding Media Libraries

  1. Choose Add Library
  2. Click Add Library and select the type of media (e.g., Films, TV Programmes, Music).
  3. Enter a name you would like to call the new library (e.g., TV) and click Next
  4. Enter the path to your media folder.
  5. Click Add Library.
  6. Repeat the process for each Library type you want to include.
  7. Next
  8. Done

Plex Add Library Plex Add Library Plex Add Library Plex Add Library

Step 4: Configuring Remote Access

💡 If you want external access to Plex you must open a the port (32400) on your firewall to your hosts IP

  1. Go to the Settings tab.
  2. Navigate to the Remote Access section.
  3. Ensure `Disable Remote' Access is not enabled and plex is accessible to the internet.

Plex Remote Access

Step 5: Library

  1. Navigate to the Library tab.
  2. Enable Scan my library automatically, Run a partial scan when changes are detected
  3. Change Video played threshold to 95%. Once you have watched 95% of the program its considered watched
  4. Save Changes

Plex Libraries Settings

Step 6: Network

  1. Navigate to the Network tab.
  2. Find Custom server access URLs and enter your custom domain name (e.g. https://plex.example.com)
  3. In the next option List of IP addresses and networks that are allowed without auth enter all the ip addresses your server has assigned (e.g. local, docker IP's, router IP's like 127.0.0.1/32,172.30.0.0/24,192.168.1.0/24
  4. Click Send Invitation.

![Plex Network](https://raw.githubusercontent.com/ajgillis04/GillisDockerDepot/main/wiki/plex_network.png

Step 7: Transcoder

💡 You can only use Plex transcoding if you have purchased a Plex Pass and your hardware supports it

  1. Navigate to the Transcoder tab.

  2. Enter your transcode directory Transcoder temporary directory

    • Ensure you’ve mapped /dev/shm/plex on the host to /transcode in the Docker container using your docker-compose.yml:
       volumes:
         - /dev/shm/plex:/transcode
      
    • On the host, create the directory and set proper permissions:
      mkdir -p /dev/shm/plex
      chmod 1777 /dev/shm/plex
      
  3. Enable Enable HRD ton mapping

  4. Select Use hardware acceleration when available

  5. Set Hardware transcoding device to auto

  6. Save

Plex Transcoder

Step 8: Languages

  1. Navigate to the Languages tab.
  2. Change Prefer audio tracks in to English
  3. Set Subtitle mode to Shown with foreign audio
  4. Save

Plex Lanaguges

Step 9: Add users

💡 **If you wish to setup additional users for Plex follow this

  1. Navigate to the Manage Library Access tab.
  2. Click Grant Library Access and enter the user's email address.
  3. Select the user name below the Search Result
  4. Click Continue.
  5. Select the Library access you wish the user to have access to (e.g. can either be 1 library, all, or a variation), Continue
  6. Choose whether wish to allow users to download videos for offline viewing, Continue
  7. Select Send <friendname> a friend request if you wish, and Send
  8. Finish

Plex Add User Plex Add User

Notes

  • The /dev/shm/plex directory leverages RAM for transcoding, providing faster performance and reducing wear and tear on your SSD.
  • Monitor RAM usage to ensure /dev/shm doesn’t fill up during heavy activity:
    df -h /dev/shm
    
⚠️ **GitHub.com Fallback** ⚠️