Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/patsissons/docker-plex-sync
https://github.com/patsissons/docker-plex-sync
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patsissons/docker-plex-sync
- Owner: patsissons
- License: mit
- Created: 2017-05-09T04:25:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T22:08:29.000Z (almost 5 years ago)
- Last Synced: 2024-05-28T07:02:42.473Z (6 months ago)
- Language: Dockerfile
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```