From 3df68771fde81bbacf90392a2c855aa68f75422f Mon Sep 17 00:00:00 2001 From: whitney Date: Sun, 11 Aug 2024 18:09:16 -0700 Subject: [PATCH] Update plex --- plex/README.md | 24 +++++++----------------- plex/docker-compose.yml.blanked | 16 +++++++++++----- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/plex/README.md b/plex/README.md index 82882c5..1439147 100644 --- a/plex/README.md +++ b/plex/README.md @@ -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. -Either create the following or mount a drive to /data/plex that has your data. +### File System +Create the following mounted folders or connect a drive with your data. - `/pwspool/plex/tvseries` - `/pwspool/plex/movies` - `/pwspool/plex/photos` - `/pwspool/plex/homevideos` - `/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. diff --git a/plex/docker-compose.yml.blanked b/plex/docker-compose.yml.blanked index 7d33c81..1216e5e 100644 --- a/plex/docker-compose.yml.blanked +++ b/plex/docker-compose.yml.blanked @@ -1,14 +1,17 @@ -version: "3" +networks: + traefik: + external: true services: plex: image: ghcr.io/linuxserver/plex:latest container_name: plex - network_mode: host restart: unless-stopped + networks: + - traefik environment: - - PUID=[[USER_ID]] - - PGID=[[GROUP_ID]] + - PUID=1000 + - PGID=1000 - VERSION=docker volumes: - /pwspool/archive/plex/:/config @@ -18,5 +21,8 @@ services: - /pwspool/archive/plex/homevideos:/homevideos - /pwspool/archive/plex/transcode:/transcode 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