Skip to content

Instantly share code, notes, and snippets.

@checktravis
Created July 16, 2018 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save checktravis/6b6da2bd582a54d2a5c281e5c3937596 to your computer and use it in GitHub Desktop.
Save checktravis/6b6da2bd582a54d2a5c281e5c3937596 to your computer and use it in GitHub Desktop.
docker-compose,yml & Dockerfile for plex with sqlitebrowser and xforwarding (for ssh/remote/headless)
version: '3'
services:
myplex:
build:
# add dockerfile here: ./docimage/Dockerfile
context: ./docimage
container_name: myplex
restart: unless-stopped
environment:
- TZ=America/New_York
# https://www.plex.tv/claim
- PLEX_CLAIM=XXXXXXXXXX
# user/group for access to media/db
- PLEX_UID=1001
- PLEX_GID=1005
- DISPLAY
- XAUTHORITY=/root/.Xauthority
network_mode: host
volumes:
# dir to hold persistant plex config files
- ./plexdb:/config
# tempfs for hardware transcoding (optional)
- /mnt/RAM_disk:/transcode
# media dir
- /media/plexmedia:/data
- ~/.Xauthority:/root/.Xauthority
FROM plexinc/pms-docker:plexpass
RUN apt-get update && apt-get install software-properties-common -y
RUN add-apt-repository -y ppa:linuxgndu/sqlitebrowser
RUN apt-get update && apt-get install sqlitebrowser -y
# with other two files in place:
docker-compose config # check for errors
# build and run in background, plex is available at localhost:32400/web/index.html
docker-compose up -d
# x-session gui browser, library should be located "/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"
docker-compose exec myplex sqlitebrowser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment