Giter Club home page Giter Club logo

docker-plex's Introduction

docker-plex

Docker image for running Plex Media Server with some teaks

Tags

ghcr.io/by275/plex:{baseimage}

As of 2022/11/08, no more updates for pms tag due to the large difference between two variants.

For a specific version, use ghcr.io/by275/plex:{baseimage}-{vertag}

  • vertag: full version string, e.g. 1.25.6.5577-c8bd13540

A new image will be re-built and pushed every 6 hours if its base has any changes.

Customized cont-init.d

Installing APT or PIP packages

Source

ENV Description Default
APT_MIRROR if you want to change apt repository
INSTALL_APT_PKGS run apt-get install -yqq --no-install-recommends ${INSTALL_APT_PKGS} silently for you
INSTALL_PIP_PKGS run python3 -m pip -q install -U ${INSTALL_PIP_PKGS} for you

Waiting for mounts, dirs, or files

Sleep 30s until desired mounts, dirs, or files are found.

Source

ENV Description Default
WAIT_RCLONE_MNTS a |-separated list of mount points for checking fuse.rclone mounts
WAIT_MFS_MNTS a |-separated list of mount points for checking fuse.mergerfs mounts
WAIT_ANCHOR_DIRS a |-separated list of paths for checking existence of dirs
WAIT_ANCHOR_FILES a |-separated list of paths for checking existence of files

Installing Plex Agents from github repo

ENV Description Default
MORE_BUNDLES a space-separated list of {owner}/{repo} containig source, e.g. ThePornDatabase/ThePornDB.bundle

Patching LocalMedia.bundle

This patch prevents for PMS from reading mp4 metadata, which is unnecessary and useful if you are running PMS on cloud storage.

ENV Description Default
PATCH_LOCAL_MEDIA_BUNDLE set something other than true to disable true

/usr/local/bin/

cleanup-ptc

to cleaning up PhotoTranscoder directory /config/Library/Application Support/Plex Media Server/Cache/PhotoTranscoder for recovering disk space based on policy.

ENV Description Default
CLEANUP_PTC_CRON cron for scheduling jobs
CLEANUP_PTC_AFTER_DAYS delete files older than this
CLEANUP_PTC_EXCEED_GB trigger deleting files if the size of PhotoTranscoder directory is larger than this
CLEANUP_PTC_FREEUP_GB how much you want to free?

plex

useful plex-related operation with following subcommands:

  • analyze: Find metadata items of missing analyzation info and run analyze for you
  • repair: Repair a Corrupted Database
  • stats: Print library status
  • optimize: Trigger database optimization
  • claim: Plex Claim

plex_autoscan

https://github.com/by275/plex_autoscan is installed to /opt/plex_autoscan and svc-autoscan will be activated if /config/autoscan/config.json file exists.

ENV Description Default
PLEX_AUTOSCAN_VERSION to pin version. possible chocies include latest or git branch/tag/hash docker

watcher

watcher is for monitoring file system changes.

An example of usage:

rclone mount (update change in remote by polling or manual vfs/refresh ) -> watcher (detect filesystem changes and make an API request for the event) -> plex autoscan (execute PMS scanner for you)

ENV Description Default
WATCHER_DIRS a |-separated list of dir paths for watching
WATCHER_INTERVAL 60s
WATCHER_DOTFILES false

docker-plex's People

Contributors

by275 avatar

Watchers

 avatar  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.