diff --git a/apps/plex/1.41.2/.env b/apps/plex/1.41.2/.env new file mode 100644 index 0000000..7456786 --- /dev/null +++ b/apps/plex/1.41.2/.env @@ -0,0 +1,18 @@ +# 数据持久化路径 [必填] +PLEX_ROOT_PATH=/home/plex + +# 网络模式 [必填] +NETWORK_MODE=host + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=32400 + +# 自定义挂载目录 1 +CUSTOM_MOUNT_DIRECTORY_1= + +# 自定义挂载目录 2 +CUSTOM_MOUNT_DIRECTORY_2= + +# 自定义挂载目录 3 +CUSTOM_MOUNT_DIRECTORY_3= + diff --git a/apps/plex/1.41.2/data.yml b/apps/plex/1.41.2/data.yml new file mode 100644 index 0000000..2ccd756 --- /dev/null +++ b/apps/plex/1.41.2/data.yml @@ -0,0 +1,54 @@ +additionalProperties: + formFields: + - default: "/home/plex" + edit: true + envKey: PLEX_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: "host" + edit: true + envKey: NETWORK_MODE + labelEn: Drive path + labelZh: 网络模式 + required: true + type: select + values: + - label: 主机网络模式 + value: "host" + - label: 桥接网络模式 + value: "bridge" + - label: 无网络模式 + value: "none" + - label: 1panel-network + value: "1panel-network" + - default: 32400 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: CUSTOM_MOUNT_DIRECTORY_1 + labelEn: Custom mount directory 1 + labelZh: 自定义挂载目录 1 + required: false + type: text + - default: "" + edit: true + envKey: CUSTOM_MOUNT_DIRECTORY_2 + labelEn: Custom mount directory 2 + labelZh: 自定义挂载目录 2 + required: false + type: text + - default: "" + edit: true + envKey: CUSTOM_MOUNT_DIRECTORY_3 + labelEn: Custom mount directory 3 + labelZh: 自定义挂载目录 3 + required: false + type: text diff --git a/apps/plex/1.41.2/docker-compose.yml b/apps/plex/1.41.2/docker-compose.yml new file mode 100644 index 0000000..887d852 --- /dev/null +++ b/apps/plex/1.41.2/docker-compose.yml @@ -0,0 +1,30 @@ +networks: + 1panel-network: + external: true +services: + plex: + container_name: plex + env_file: + - ./envs/global.env + - .env + environment: + - NVIDIA_VISIBLE_DEVICES=all + - PUID=1000 + - PGID=1000 + - UMASK=022 + - TZ=Asia/Shanghai + - VERSION=docker + image: linuxserver/plex:1.41.2 + labels: + createdBy: Apps + network_mode: ${NETWORK_MODE} + ports: + - ${PANEL_APP_PORT_HTTP}:32400 + restart: always + volumes: + - ${PLEX_ROOT_PATH}/config:/config + - ${PLEX_ROOT_PATH}/tv:/tv + - ${PLEX_ROOT_PATH}/movies:/movies + - ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1} + - ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2} + - ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3} diff --git a/apps/plex/1.41.2/envs/default.env b/apps/plex/1.41.2/envs/default.env new file mode 100644 index 0000000..cd05f46 --- /dev/null +++ b/apps/plex/1.41.2/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/plex/1.41.2/envs/global.env b/apps/plex/1.41.2/envs/global.env new file mode 100644 index 0000000..e10989f --- /dev/null +++ b/apps/plex/1.41.2/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/plex/1.41.2/scripts/init.sh b/apps/plex/1.41.2/scripts/init.sh new file mode 100644 index 0000000..07fb8c3 --- /dev/null +++ b/apps/plex/1.41.2/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/plex/1.41.2/scripts/uninstall.sh b/apps/plex/1.41.2/scripts/uninstall.sh new file mode 100644 index 0000000..c86c4fb --- /dev/null +++ b/apps/plex/1.41.2/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/plex/1.41.2/scripts/upgrade.sh b/apps/plex/1.41.2/scripts/upgrade.sh new file mode 100644 index 0000000..07fb8c3 --- /dev/null +++ b/apps/plex/1.41.2/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/plex/README.md b/apps/plex/README.md new file mode 100644 index 0000000..454da2a --- /dev/null +++ b/apps/plex/README.md @@ -0,0 +1,15 @@ +# plex + +媒体播放器及媒体服务器软件 + +![plex](https://file.lifebus.top/imgs/plex_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +Plex是一套媒体播放器及媒体服务器软件,让用户整理在设备上的有声书、音乐、播客、图片和影片文件,以供流至移动设备、智能电视和电子媒体播放器上。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/plex/data.yml b/apps/plex/data.yml new file mode 100644 index 0000000..4fa8e63 --- /dev/null +++ b/apps/plex/data.yml @@ -0,0 +1,15 @@ +additionalProperties: + key: plex + name: plex + tags: + - WebSite + - Media + - Local + shortDescZh: 媒体播放器及媒体服务器软件 + shortDescEn: Media player and media server software + type: website + crossVersionUpdate: true + limit: 0 + website: https://www.plex.tv/ + github: https://github.com/plexinc/pms-docker/ + document: https://www.plex.tv/ diff --git a/apps/plex/logo.png b/apps/plex/logo.png new file mode 100644 index 0000000..3f24325 Binary files /dev/null and b/apps/plex/logo.png differ