Code Monkey home page Code Monkey logo

unicorn-docker's Introduction

Unofficial Docker container for UnicornLoadBalancer

I created these containers in an effort to make deploying UnicornTranscoder quick and painless in a docker environment. The unicorn-loadbalancer container includes both UnicornLoadBalancer as well as UnicornFFMPEG. In addition to this container, you will also need at least one instance of unicorn-transcoder.

magn2o/unicorn-loadbalancer

Ideally, this container should be used behind a reverse SSL proxy.

Usage

It is strongly advised to use this within a proper docker-compose configuration. However, should you wish to do things the hard way, please see below:

Note: You will want to ensure that you have a Plex container already configured and running before launching a load balancer.

docker run \  
-d \
--name unicorn-loadbalancer \
-p 3001:3001/tcp \
-e SERVER_HOST="127.0.0.1" \
-e SERVER_PORT="3001" \
-e SERVER_PUBLIC="http://[hostipaddress]:3001/" \
-e PLEX_HOST="[plexipaddress]" \
-e PLEX_PORT="32400" \
-e PLEX_PATH_SESSIONS="/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions" \
-e DATABASE_SQLITE_PATH="/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" \
-e LB_URL="http://[loadbalanceripaddress]:3001/" \
-h [hostname] \
-v [path]:/usr/lib/plexmediaserver \
-v [path]:/config \
-v [path]:/media:ro \
magn2o/unicorn-loadbalancer

magn2o/unicorn-transcoder

One of the unique features of this container is that it will automagically identify the Plex version and necessary codec builds at runtime. This means that you can update your Plex server at will and then simply restart this container to maintain version parity without any manual edits.

Usage

docker run \  
-d \
--rm \
--name unicorn-transcoder \
-p 3000:32400/tcp \
-e SERVER_PORT="32400" \
-e LOADBALANCER_ADDRESS="http://[loadbalanceripaddress]:3001" \
-e INSTANCE_ADDRESS="http://[hostipaddress]:3000" \
-e PLEX_TOKEN="[x-plex-token]"
-h [hostname] \
magn2o/unicorn-transcoder

unicorn-docker's People

Contributors

magn2o avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.