Skip to main content

Docker Compose

services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: Plex
    network_mode: host
    environment:
      - PUID=9981000
      - PGID=1001000
      - VERSION=docker
    devices:
      - /dev/dri:/dev/dri 
    volumes:
      - /dev/shm:/transcode
      - /Config/Plex:/config
      - /srv/dev-disk-by-uuid-6b4cd5d2-aa06-4778-84d6-39fc5003a16e/Plex:/media
      - /srv/dev-disk-by-uuid-d85f71cb-5c9f-43a5-8240-3e81b82ce9a7/Plex/path-to-movies/Movies:/movies
      - /srv/dev-disk-by-uuid-d85f71cb-5c9f-43a5-8240-3e81b82ce9a7/Plex/path-to-series/TV:/tv
      - /srv/dev-disk-by-uuid-d85f71cb-5c9f-43a5-8240-3e81b82ce9a7/Plex/path-to-music/Music:/music
      - /srv/dev-disk-by-uuid-6b4cd5d2-aa06-4778-84d6-39fc5003a16e/YoutubeDL:/youtube2
      - /srv/dev-disk-by-uuid-d85f71cb-5c9f-43a5-8240-3e81b82ce9a7/Youtube:/youtube
    restart: unless-stopped