Added plex

This commit is contained in:
olomana 2023-02-10 22:42:47 +00:00
parent e146ec7c2f
commit 20b62ee867
2 changed files with 49 additions and 0 deletions

27
plex/README.md Normal file
View File

@ -0,0 +1,27 @@
# Plex
A self hosted plex server that is basically the vanilla plex docker container.
### Requirements
The container expects its mounted folders to exist already, before it's created.
Either create the following or mount a drive to /data/plex that has your data.
- `/data/persistent/plex/tvseries`
- `/data/persistent/plex/movies`
- `/data/persistent/plex/photos`
- `/data/persistent/plex/homevideos`
- `/data/persistent/plex/transcode`
(If Docker has been installed with snap, while installing the OS, you'll have issues here. It's better to seperately install docker-ce and docker-compose.
### Start with Docker Compose:
`docker-compose up -d`
### Start with Plain Docker
`docker run -d --name=plex --net=host -e PUID=1000 -e PGID=1000 -e VERSION=docker -e PLEX_CLAIM= `#optional` -v /data/persistent/plex/library:/config -v /data/persistent/plex/tvseries:/tv -v /data/persistent/plex/movies:/movies -v /data/persistent/plex/transcode:/transcode --restart always ghcr.io/linuxserver/plex`
### Notes
When navigating to plex, assuming no nginx routing is happening, you must go to `http://[ip address]:32400/web/index.html#!/` for first time setup. Just going to port 32400 doesn't work for some reason until after the setup is complete.

22
plex/docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: "3"
services:
plex:
image: ghcr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
restart: always
environment:
- PUID=1000
- PGID=1000
- VERSION=docker
volumes:
- /data/persistent/plex/:/config
- /data/persistent/plex/tvseries:/tv
- /data/persistent/plex/movies:/movies
- /data/persistent/plex/photos:/photos
- /data/persistent/plex/homevideos:/homevideos
- /data/persistent/plex/transcode:/transcode
labels:
- "traefik.enable=false"