Sign inSign up

phd59fr/prt

By phd59fr

Updated almost 9 years ago

PRT

Image
0

203

phd59fr/prt repository overview

Docker containers for Plex Media Server with Remote Transcoding Support

Using the Official Plex docker container as a base, with remote transcoding support provided by Plex Remote Transcoder we pair the two together using Docker.

The Official Plex docker image is the basis for both the master and slave, so their documentation also applies to these containers. Given that, I won't repeat that information here.

Prerequisites

  • Docker

Usage

Master
docker run \
-d \
--name PLEX-master \
--restart=always \
--net=host \
-e TZ="Europe/Paris" \
-e MASTER_IP="MASTERIP" \
-e SLAVE_IP="SLAVEIP" \
-e SLAVE_PORT="8022" \
-e PLEX_UID="797" \
-e PLEX_GID="797" \
-v /plex/:/config \
-v /plextmp:/transcode \
-v /tmp:/tmp \
-v /storage/download:/media \
phd59fr/prt:master
Slave
docker run \
-d \
--name PLEX-slave \
--restart=always \
--net=host \
-e TZ="Europe/Paris" \
-e MASTER_IP="MASTERIP" \
-e SLAVE_IP="SLAVEIP" \
-e SLAVE_PORT="8022" \
-e PLEX_UID="797" \
-e PLEX_GID="797" \
-v /plex/:/config \
-v /plextmp/:/transcode \
-v /tmp:/tmp \
-v /storage/download:/media \
phd59fr/prt:slave
NB. The volume paths inside the containers need to match! If they don't, it won't work.

Parameters

  • For explanation of the base image parameters see their documentation.
    • Pay particular attention to PLEX_UID and PLEX_GID as this can affect the slaves ability to transcode.
Master & Slave
  • -e MASTER_IP="<hostIPAddress>" this is the externally visible ip address (or hostname) for the Plex master.
Master
  • -e SLAVE_IP="<slaveIPAddress>" this is the IP address (or hostname) of the Plex slave.
  • -e SLAVE_PORT="<slavePort>" this is the SSH port of the Plex slave (default = 22).
  • -e SLAVE_USER="<slaveUser>" this is the SSH user of the Plex slave (default = plex).
Slave

if your want change ssh port you can use this command:

  • docker exec -it PLEX-slave bash
  • echo "PORT xxxx" >> /etc/ssh/sshd_config
  • docker restart PLEX-slave

Configuration

Getting up and running is very similar to the official image. If the slave is off, unreachable or not configured, the master server will function exactly as the official Plex Media Server container. This means that you can start-up, or shut-down the slave(s) as needed.

When you start up the master for the first time, it will add the slave as per the given parameters. The .prt.conf will be available in the mounted /config directory so you can change it from your host if need be.

At this stage you need to go into the master container and ssh to the slave. The reasons for which are outlined vaguely here.

# connect to an interactive terminal in the master container
docker exec -ti plex bash
# ssh to the slave so that we can type "yes" and populate `known_hosts`
ssh <slaveUser>@<slaveIPAddress> -p <slavePort>

If all goes well (and you typed "yes") you should be connected to the slave via ssh.

Tag summary

Content type

Image

Digest

Size

219.6 MB

Last updated

almost 9 years ago

docker pull phd59fr/prt:slave