Created
July 16, 2018 03:07
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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