Update plex

This commit is contained in:
whitney 2024-08-11 18:09:16 -07:00
parent 497ebf18e2
commit 3df68771fd
2 changed files with 18 additions and 22 deletions

View File

@ -1,27 +1,17 @@
# Plex # Plex
A self hosted plex server that is basically the vanilla plex docker container. A self hosted plex server for home videos.
### Requirements ## Instructions
The container expects its mounted folders to exist already, before it's created. ### File System
Either create the following or mount a drive to /data/plex that has your data. Create the following mounted folders or connect a drive with your data.
- `/pwspool/plex/tvseries` - `/pwspool/plex/tvseries`
- `/pwspool/plex/movies` - `/pwspool/plex/movies`
- `/pwspool/plex/photos` - `/pwspool/plex/photos`
- `/pwspool/plex/homevideos` - `/pwspool/plex/homevideos`
- `/pwspool/plex/transcode` - `/pwspool/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. ## Notes
When navigating to plex, assuming no nginx routing is happening, you must go to `https://[url]/web/index.html#!/` for first time setup.
### 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.

View File

@ -1,14 +1,17 @@
version: "3" networks:
traefik:
external: true
services: services:
plex: plex:
image: ghcr.io/linuxserver/plex:latest image: ghcr.io/linuxserver/plex:latest
container_name: plex container_name: plex
network_mode: host
restart: unless-stopped restart: unless-stopped
networks:
- traefik
environment: environment:
- PUID=[[USER_ID]] - PUID=1000
- PGID=[[GROUP_ID]] - PGID=1000
- VERSION=docker - VERSION=docker
volumes: volumes:
- /pwspool/archive/plex/:/config - /pwspool/archive/plex/:/config
@ -18,5 +21,8 @@ services:
- /pwspool/archive/plex/homevideos:/homevideos - /pwspool/archive/plex/homevideos:/homevideos
- /pwspool/archive/plex/transcode:/transcode - /pwspool/archive/plex/transcode:/transcode
labels: labels:
- "traefik.enable=false" - traefik.http.routers.plex.rule=Host(`SITE_URL`)
- traefik.http.routers.plex.tls=true
- traefik.http.routers.plex.tls.certresolver=lets-encrypt
- traefik.http.services.plex.loadbalancer.server.port=3000