Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patsissons/docker-plex-sync


https://github.com/patsissons/docker-plex-sync

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Docker Containers

[![Docker Version](https://images.microbadger.com/badges/version/patsissons/plex-sync.svg)](https://microbadger.com/images/patsissons/plex-sync) [![Docker Image](https://images.microbadger.com/badges/image/patsissons/plex-sync.svg)](https://microbadger.com/images/patsissons/plex-sync) [![Docker Pulls](https://img.shields.io/docker/pulls/patsissons/plex-sync.svg)](https://hub.docker.com/r/patsissons/plex-sync/) [![Docker Stars](https://img.shields.io/docker/stars/patsissons/plex-sync.svg)](https://hub.docker.com/r/patsissons/plex-sync/) [![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

[`plex-sync`](https://github.com/jacobwgillespie/plex-sync) running in a container as a cron job.

## Usage

- `SECTION_MAPS` is the important environment variable to set, it uses the same syntax that `plex-sync` uses, but allows multiple mappings to be configured by separating them with a `|` as shown in the example below.
- `CRON_SCHEDULE` allows you to configure a non-default schedule to run the sync (default is every hour, `0 * * * *`)
- `INITIAL_RUN` will run `plex-sync` before starting cron if set to anything.

## Example

```sh
docker run -d -e SECTION_MAPS='[email protected]/1 [email protected]/3 | [email protected]:32401/1,r https://[email protected]/3,w [email protected]/2,rw' -e CRON_SCHEDULE='*/5 * * * *' -e INITIAL_RUN=true patsissons/plex-sync
```