From 2b7d78419a075a0fe09c32096e02414851f20a50 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 4 May 2016 16:40:45 +0800 Subject: [PATCH] update plex README.md --- plex/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/plex/README.md b/plex/README.md index b292c8f..09a16e3 100644 --- a/plex/README.md +++ b/plex/README.md @@ -4,4 +4,33 @@ plex The free [Plex Media Server][1] simplifies your life by organizing all of your personal media, making it beautiful and streaming it to all of your devices. +## docker-compose.yml + +```yaml +plex: + image: vimagick/plex + volumes: + - "./data:/data:ro" + - "./data/plex:/var/lib/plexmediaserver/Library/Application Support" + environment: + - "HOME=/data" + working_dir: /data +# user: 1000:1000 + net: host + restart: always +``` + +> Please uncomment `user: UID:GID` if you're not the `root` user. + +## up and running + +```bash +$ cd ~/fig/plex/ +$ mkdir -p data/{plex,Movies,Music,Photos} +$ echo "$(id -u):$(id -g)" +$ vim docker-compose.yml +$ docker-compose up -d +$ firefox http://localhost:32400/web +``` + [1]: https://plex.tv/