From 39b85a7d1b91bb60ef68201cce55f5ef706c61b6 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Wed, 31 Oct 2018 17:02:54 +1100 Subject: [PATCH] Add plex :v: --- .gitignore | 2 ++ README.md | 30 +++++++++++++++++++++- plex-h5ai/docker-compose.yml | 49 ++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 plex-h5ai/docker-compose.yml diff --git a/.gitignore b/.gitignore index b319d8f..f4494e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ **/data +plex-h5ai/config +plex-h5ai/transcode diff --git a/README.md b/README.md index 6345b5c..a5c6105 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,9 @@ - [高级特性](#高级特性) - [找到你下载的文件](#找到你下载的文件) - [只想运行一个镜像?(如:在群晖中运行)](#只想运行一个镜像如在群晖中运行) - - [常见问题 FAQ](#常见问题) + - [常见问题 FAQ](#常见问题-faq) + - [One more things](#one-more-things) + - [快速运行](#快速运行) - [感谢](#感谢) @@ -157,6 +159,32 @@ nextcloud|![nextcloud](https://raw.githubusercontent.com/wahyd4/aria2-ariang-x-d * 没有权限管理下载的文件? 请考虑使用 `root` 用户运行 docker 程序。延伸阅读: * AriaNg 界面不能显示?请记住目前在访问 AriaNg 界面的时候,地址最后一定要添加 `/` * Nextcloud 不能访问?页面显示`502`?, 由于 Nextcloud 启动耗时较长,大致为`3`分钟左右,请耐心等待。如果3分钟之后依然不能显示,请查看`nextcloud`的 Docker 容器是否有错误日志输出,如果没有,再稍等多等一下即可。 + +## One more things + Plex!!! + +Plex 是一个视频服务器,有了Plex 之后,你通过本程序可以实现: + +`下载视频` -> `文件管理` -> `视频播放` -> `分享 / 远程投屏` 集一体的解决方案。 +分别对应的组件为: + +`aria2` -> `h5ai` -> `h5ai/plex` -> `plex app / DLNA / Chrome cast / Apple airdrop` 等等。 + +### 快速运行 + +1. 在你希望的运行电脑或者服务器上 git clone 本仓库 +2. 前往 获取 TOKEN, 并填充至 `plex-h5ai` 目录下的 `docker-compose.yml`下的 `PLEX_CLAIM`字段。 +3. 在命令行中运行 +```bash +cd plex-h5ai +docker-compose up -d +``` +4. 在浏览器中打开 ,使用 Plex 平台账号登录即可像你在其他地方使用Plex一样享受播放、投屏的快乐了。 + +更多Plex 的使用,请前往: + +TODO: 稍后加入更多详细的文档,有疑问的可以提issue。 + ## 感谢 * 创建 docker-compose 这个想法灵感源自于阅读了这帖子 diff --git a/plex-h5ai/docker-compose.yml b/plex-h5ai/docker-compose.yml new file mode 100644 index 0000000..d8738cb --- /dev/null +++ b/plex-h5ai/docker-compose.yml @@ -0,0 +1,49 @@ +version: "3" + +services: + h5ai: + image: bixidock/h5ai + volumes: + - ./data:/var/www:rw + restart: unless-stopped + aria2: + image: wahyd4/aria2-ui:h5ai + ports: + - "8000:80" + - "443:443" + - "6800:6800" + volumes: + - ./data:/var/www:rw + # volumes: + # - /some_folder:/root/conf/key + # - ~/test/aria2.conf:/root/conf/aria2.conf + environment: + - DOMAIN=:80 + # - SSL=true + # - RPC_SECRET=Hello + # - ARIA2_USER=admin + # - ARIA2_PWD=password + # - ENABLE_AUTH=true + links: + - h5ai:file-manager + restart: unless-stopped + plex: + image: spritsail/plex-media-server + volumes: + - ./data:/media:rw # The media folder + - ./transcode:/transcode # Transcoder temporary directory + - ./config:/config # Configurations + environment: + - PLEX_CLAIM=your_token + restart: unless-stopped + hostname: "junv-plex-server" # change to the name you like + ports: + - "32400:32400" # The web port + - "3005:3005" # The following are optional + - "8324:8324" + - "32469:32469" + - "1900:1900" + - "32410:32410" + - "32412:32412" + - "32413:32413" + - "32414:32414"