UnicornTranscoder / UnicornLoadBalancer

MIT License
128 stars 16 forks source link

Unsure of Variable `PLEX_PATH_USR` when using Docker #38

Closed kennyparsons closed 3 years ago

kennyparsons commented 3 years ago
I use plex in a docker (linuxserver). The path /usr/lib/plexmediaserver is not exposed to the host. So i'm not sure what value to use. PLEX_PATH_USR The Plex's path string /usr/lib/plexmediaserver/
davidjameshowell commented 3 years ago

@kennyparsons - You should (ideally) run the load balancer on the same host as your Plex installation. On Docker, you simply pass in the PMS config volume or host mount (where your Plex data resides).

For examaple:

plex:
  image: lsio:plex
  volume:
    - plex_data:/config

unicorn-loadbalancer:
  image: unicorn-loadbalancer
  volumes:
      - plex_data:/plex_config
  environment:
    - PLEX_PATH_USR=/plex_config

Hopefully this helps some!

kennyparsons commented 3 years ago

Ok, I was going to try that first, but then I thought about it: /var/lib/plexmediaserver and /usr/lib/plexmediaserver are very different paths (/usr... is where the transcode binaries are stored. /var... is where the config files are stored (on a non-docker installation). So you're saying for both PLEX_PATH_USR and PLEX_PATH_SESSIONS I should use the config directory passed into the docker settings? ie:

PLEX_PATH_USR=/home/me/plex/config
PLEX_PATH_SESSIONS=/home/me/plex/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions

where my plex docker-compose is

...
    volumes:
      - /home/me/plex/config/:/config
...

Also, is there an official docker image for unicorn? It looks like you're using an example of one, but i cannot find it.