Plex on Raspberry Pi

Plex is a media server and streaming platform that lets you organize your personal media library and stream it to virtually any device, while also offering free movies, TV shows, live TV, and podcasts.

๐Ÿ” Key Features

NOTE: Unlike Jellyfin, Plex is only free if streaming on your local network. There is a cost if you want to stream remotely.

๐Ÿš€ Docker Installation Steps

  1. Update your system
    sudo apt update && sudo apt upgrade -y
  2. Install Docker
    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
  3. Install Docker Compose
    sudo apt install docker-compose-plugin
  4. Add your user to the Docker group
    sudo usermod -aG docker $USER
  5. Enable Docker at boot
    sudo systemctl enable docker
  6. Reboot
    sudo reboot
  7. Test Docker
    docker run hello-world

๐Ÿ“ Setup Plex

mkdir ~/docker
mkdir ~/docker/plex
mkdir ~/docker/plex/config

๐Ÿงพ Docker Compose File

In ~/docker/plex create docker-compose.yml

services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - VERSION=docker
      - PLEX_CLAIM=claim-VFDzv3bHizaXfnhJk8h2
    volumes:
      - /mnt/Media:/media # Location of your media files
      - ~/docker/plex/config:/config

NOTE: Follow this guide to setup your media folder: Plex Media Structure

In a nutshell, if /mnt/Media is where you're storing everything, you should have something like /mnt/Media/Movies, /mnt/Media/TV_Shows, etc. Under each of those you'll have a directory for each movie, TV show, etc. For example: /mnt/Movies/John_Wick_(2014) and in there would be the movie file (.mkx, etc.). Personally, I just load all my media files in /mnt/Media with a directory for each movie or show and let Plex sort it all out. This works pretty well for me.

โ–ถ๏ธ Start Plex

From within ~/docker/plex run:

docker compose up -d

๐Ÿ“œ View Logs

docker logs plex

๐ŸŒ Access Web Interface

Open your browser and go to http://<your-pi>:32400

If you find my content useful, please consider supporting this page:

โ˜• Buy Me a Coffee