diff --git a/apps/plex/1.40.3.8555-fef15d30c/.env.sample b/apps/plex/1.40.3.8555-fef15d30c/.env.sample new file mode 100644 index 00000000..0a6aea20 --- /dev/null +++ b/apps/plex/1.40.3.8555-fef15d30c/.env.sample @@ -0,0 +1,21 @@ +ADVERTISE_IP="http://localhost:32400/" +ALLOWED_NETWORKS="192.168.1.0/24,172.18.0.0/16" +CHANGE_CONFIG_DIR_OWNERSHIP="true" +CLAIM_TOKEN="" +CONTAINER_NAME="plex" +DATABASE_PATH="./data/plex/database" +HOSTNAME="plex" +MEDIA_PATH="./data/media" +PANEL_APP_PORT_HTTP="32400" +PANEL_APP_PORT_TCP_3005="3005" +PANEL_APP_PORT_TCP_32469="32469" +PANEL_APP_PORT_TCP_8324="8324" +PANEL_APP_PORT_UDP_1900="1900" +PANEL_APP_PORT_UDP_32410="32410" +PANEL_APP_PORT_UDP_32412="32412" +PANEL_APP_PORT_UDP_32413="32413" +PANEL_APP_PORT_UDP_32414="32414" +PLEX_GID="" +PLEX_UID="" +TIMEZONE="Asia/Shanghai" +TRANSCODE_PATH="./data/transcode/temp" diff --git a/apps/plex/1.40.3.8555-fef15d30c/data.yml b/apps/plex/1.40.3.8555-fef15d30c/data.yml new file mode 100644 index 00000000..26ccf22b --- /dev/null +++ b/apps/plex/1.40.3.8555-fef15d30c/data.yml @@ -0,0 +1,157 @@ +additionalProperties: + formFields: + - default: "32400" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port 32400 (TCP) + labelZh: 端口 32400 (TCP) + required: true + rule: paramPort + type: number + - default: "3005" + edit: true + envKey: PANEL_APP_PORT_TCP_3005 + labelEn: Port 3005 (TCP) + labelZh: 端口 3005 (TCP) + required: true + rule: paramPort + type: number + - default: "8324" + edit: true + envKey: PANEL_APP_PORT_TCP_8324 + labelEn: Port 8324 (TCP) + labelZh: 端口 8324 (TCP) + required: true + rule: paramPort + type: number + - default: "32469" + edit: true + envKey: PANEL_APP_PORT_TCP_32469 + labelEn: Port 32469 (TCP) + labelZh: 端口 32469 (TCP) + required: true + rule: paramPort + type: number + - default: "1900" + edit: true + envKey: PANEL_APP_PORT_UDP_1900 + labelEn: Port 1900 (UDP) + labelZh: 端口 1900 (UDP) + required: true + rule: paramPort + type: number + - default: "32410" + edit: true + envKey: PANEL_APP_PORT_UDP_32410 + labelEn: Port 32410 (UDP) + labelZh: 端口 32410 (UDP) + required: true + rule: paramPort + type: number + - default: "32412" + edit: true + envKey: PANEL_APP_PORT_UDP_32412 + labelEn: Port 32412 (UDP) + labelZh: 端口 32412 (UDP) + required: true + rule: paramPort + type: number + - default: "32413" + edit: true + envKey: PANEL_APP_PORT_UDP_32413 + labelEn: Port 32413 (UDP) + labelZh: 端口 32413 (UDP) + required: true + rule: paramPort + type: number + - default: "32414" + edit: true + envKey: PANEL_APP_PORT_UDP_32414 + labelEn: Port 32414 (UDP) + labelZh: 端口 32414 (UDP) + required: true + rule: paramPort + type: number + - default: "Asia/Shanghai" + edit: true + envKey: TIMEZONE + labelEn: Timezone + labelZh: 时区 + required: true + type: text + - default: "" + edit: true + envKey: CLAIM_TOKEN + labelEn: Claim Token + labelZh: 声明令牌 + required: false + type: text + - default: "http://localhost:32400/" + edit: true + envKey: ADVERTISE_IP + labelEn: External URL + labelZh: 外部访问地址 + required: true + rule: paramExtUrl + type: text + - default: "plex" + edit: true + envKey: HOSTNAME + labelEn: Hostname + labelZh: 主机名 + required: true + type: text + - default: "./data/plex/database" + edit: true + envKey: DATABASE_PATH + labelEn: Database Path + labelZh: 数据库路径 + required: true + type: text + - default: "./data/transcode/temp" + edit: true + envKey: TRANSCODE_PATH + labelEn: Transcode Path + labelZh: 转码路径 + required: true + type: text + - default: "./data/media" + edit: true + envKey: MEDIA_PATH + labelEn: Media Path + labelZh: 媒体路径 + required: true + type: text + - default: "" + edit: true + envKey: PLEX_UID + labelEn: Plex UID + labelZh: Plex 用户 ID + required: false + type: text + - default: "" + edit: true + envKey: PLEX_GID + labelEn: Plex GID + labelZh: Plex 组 ID + required: false + type: text + - default: "true" + envKey: CHANGE_CONFIG_DIR_OWNERSHIP + labelEn: Change Config Dir Ownership + labelZh: 更改配置目录所有权 + required: true + type: select + edit: true + values: + - label: "True" + value: "true" + - label: "False" + value: "false" + - default: "192.168.1.0/24,172.18.0.0/16" + edit: true + envKey: ALLOWED_NETWORKS + labelEn: Allowed Networks + labelZh: 允许的网络 + required: false + type: text \ No newline at end of file diff --git a/apps/plex/1.40.3.8555-fef15d30c/docker-compose.yml b/apps/plex/1.40.3.8555-fef15d30c/docker-compose.yml new file mode 100644 index 00000000..5b821931 --- /dev/null +++ b/apps/plex/1.40.3.8555-fef15d30c/docker-compose.yml @@ -0,0 +1,36 @@ +services: + plex: + image: "plexinc/pms-docker:1.40.3.8555-fef15d30c" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:32400/tcp" + - "${PANEL_APP_PORT_TCP_3005}:3005/tcp" + - "${PANEL_APP_PORT_TCP_8324}:8324/tcp" + - "${PANEL_APP_PORT_TCP_32469}:32469/tcp" + - "${PANEL_APP_PORT_UDP_1900}:1900/udp" + - "${PANEL_APP_PORT_UDP_32410}:32410/udp" + - "${PANEL_APP_PORT_UDP_32412}:32412/udp" + - "${PANEL_APP_PORT_UDP_32413}:32413/udp" + - "${PANEL_APP_PORT_UDP_32414}:32414/udp" + environment: + - TZ=${TIMEZONE} + - PLEX_CLAIM=${CLAIM_TOKEN} + - ADVERTISE_IP=${ADVERTISE_IP} + - HOSTNAME=${HOSTNAME} + - PLEX_UID=${PLEX_UID} + - PLEX_GID=${PLEX_GID} + - CHANGE_CONFIG_DIR_OWNERSHIP=${CHANGE_CONFIG_DIR_OWNERSHIP} + - ALLOWED_NETWORKS=${ALLOWED_NETWORKS} + volumes: + - ${DATABASE_PATH}:/config + - ${TRANSCODE_PATH}:/transcode + - ${MEDIA_PATH}:/data + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/plex/README.md b/apps/plex/README.md new file mode 100644 index 00000000..15901c16 --- /dev/null +++ b/apps/plex/README.md @@ -0,0 +1,3 @@ +# Plex Media Server + +Plex 是一种媒体播放系统,可让您轻松欣赏电影、电视节目、音乐、图片和基于互联网的内容。 \ No newline at end of file diff --git a/apps/plex/data.yml b/apps/plex/data.yml new file mode 100644 index 00000000..d95808d5 --- /dev/null +++ b/apps/plex/data.yml @@ -0,0 +1,19 @@ +name: Plex Media Server +tags: + - 多媒体 +title: Plex 媒体服务器 +description: Plex 媒体服务器 +additionalProperties: + key: plex + name: Plex Media Server + tags: + - Media + shortDescZh: Plex 媒体服务器 + shortDescEn: Plex Media Server + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://www.plex.tv + github: https://github.com/plexinc/pms-docker + document: https://support.plex.tv diff --git a/apps/plex/latest/.env.sample b/apps/plex/latest/.env.sample new file mode 100644 index 00000000..0a6aea20 --- /dev/null +++ b/apps/plex/latest/.env.sample @@ -0,0 +1,21 @@ +ADVERTISE_IP="http://localhost:32400/" +ALLOWED_NETWORKS="192.168.1.0/24,172.18.0.0/16" +CHANGE_CONFIG_DIR_OWNERSHIP="true" +CLAIM_TOKEN="" +CONTAINER_NAME="plex" +DATABASE_PATH="./data/plex/database" +HOSTNAME="plex" +MEDIA_PATH="./data/media" +PANEL_APP_PORT_HTTP="32400" +PANEL_APP_PORT_TCP_3005="3005" +PANEL_APP_PORT_TCP_32469="32469" +PANEL_APP_PORT_TCP_8324="8324" +PANEL_APP_PORT_UDP_1900="1900" +PANEL_APP_PORT_UDP_32410="32410" +PANEL_APP_PORT_UDP_32412="32412" +PANEL_APP_PORT_UDP_32413="32413" +PANEL_APP_PORT_UDP_32414="32414" +PLEX_GID="" +PLEX_UID="" +TIMEZONE="Asia/Shanghai" +TRANSCODE_PATH="./data/transcode/temp" diff --git a/apps/plex/latest/data.yml b/apps/plex/latest/data.yml new file mode 100644 index 00000000..26ccf22b --- /dev/null +++ b/apps/plex/latest/data.yml @@ -0,0 +1,157 @@ +additionalProperties: + formFields: + - default: "32400" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port 32400 (TCP) + labelZh: 端口 32400 (TCP) + required: true + rule: paramPort + type: number + - default: "3005" + edit: true + envKey: PANEL_APP_PORT_TCP_3005 + labelEn: Port 3005 (TCP) + labelZh: 端口 3005 (TCP) + required: true + rule: paramPort + type: number + - default: "8324" + edit: true + envKey: PANEL_APP_PORT_TCP_8324 + labelEn: Port 8324 (TCP) + labelZh: 端口 8324 (TCP) + required: true + rule: paramPort + type: number + - default: "32469" + edit: true + envKey: PANEL_APP_PORT_TCP_32469 + labelEn: Port 32469 (TCP) + labelZh: 端口 32469 (TCP) + required: true + rule: paramPort + type: number + - default: "1900" + edit: true + envKey: PANEL_APP_PORT_UDP_1900 + labelEn: Port 1900 (UDP) + labelZh: 端口 1900 (UDP) + required: true + rule: paramPort + type: number + - default: "32410" + edit: true + envKey: PANEL_APP_PORT_UDP_32410 + labelEn: Port 32410 (UDP) + labelZh: 端口 32410 (UDP) + required: true + rule: paramPort + type: number + - default: "32412" + edit: true + envKey: PANEL_APP_PORT_UDP_32412 + labelEn: Port 32412 (UDP) + labelZh: 端口 32412 (UDP) + required: true + rule: paramPort + type: number + - default: "32413" + edit: true + envKey: PANEL_APP_PORT_UDP_32413 + labelEn: Port 32413 (UDP) + labelZh: 端口 32413 (UDP) + required: true + rule: paramPort + type: number + - default: "32414" + edit: true + envKey: PANEL_APP_PORT_UDP_32414 + labelEn: Port 32414 (UDP) + labelZh: 端口 32414 (UDP) + required: true + rule: paramPort + type: number + - default: "Asia/Shanghai" + edit: true + envKey: TIMEZONE + labelEn: Timezone + labelZh: 时区 + required: true + type: text + - default: "" + edit: true + envKey: CLAIM_TOKEN + labelEn: Claim Token + labelZh: 声明令牌 + required: false + type: text + - default: "http://localhost:32400/" + edit: true + envKey: ADVERTISE_IP + labelEn: External URL + labelZh: 外部访问地址 + required: true + rule: paramExtUrl + type: text + - default: "plex" + edit: true + envKey: HOSTNAME + labelEn: Hostname + labelZh: 主机名 + required: true + type: text + - default: "./data/plex/database" + edit: true + envKey: DATABASE_PATH + labelEn: Database Path + labelZh: 数据库路径 + required: true + type: text + - default: "./data/transcode/temp" + edit: true + envKey: TRANSCODE_PATH + labelEn: Transcode Path + labelZh: 转码路径 + required: true + type: text + - default: "./data/media" + edit: true + envKey: MEDIA_PATH + labelEn: Media Path + labelZh: 媒体路径 + required: true + type: text + - default: "" + edit: true + envKey: PLEX_UID + labelEn: Plex UID + labelZh: Plex 用户 ID + required: false + type: text + - default: "" + edit: true + envKey: PLEX_GID + labelEn: Plex GID + labelZh: Plex 组 ID + required: false + type: text + - default: "true" + envKey: CHANGE_CONFIG_DIR_OWNERSHIP + labelEn: Change Config Dir Ownership + labelZh: 更改配置目录所有权 + required: true + type: select + edit: true + values: + - label: "True" + value: "true" + - label: "False" + value: "false" + - default: "192.168.1.0/24,172.18.0.0/16" + edit: true + envKey: ALLOWED_NETWORKS + labelEn: Allowed Networks + labelZh: 允许的网络 + required: false + type: text \ No newline at end of file diff --git a/apps/plex/latest/docker-compose.yml b/apps/plex/latest/docker-compose.yml new file mode 100644 index 00000000..49af0ea0 --- /dev/null +++ b/apps/plex/latest/docker-compose.yml @@ -0,0 +1,36 @@ +services: + plex: + image: "plexinc/pms-docker:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:32400/tcp" + - "${PANEL_APP_PORT_TCP_3005}:3005/tcp" + - "${PANEL_APP_PORT_TCP_8324}:8324/tcp" + - "${PANEL_APP_PORT_TCP_32469}:32469/tcp" + - "${PANEL_APP_PORT_UDP_1900}:1900/udp" + - "${PANEL_APP_PORT_UDP_32410}:32410/udp" + - "${PANEL_APP_PORT_UDP_32412}:32412/udp" + - "${PANEL_APP_PORT_UDP_32413}:32413/udp" + - "${PANEL_APP_PORT_UDP_32414}:32414/udp" + environment: + - TZ=${TIMEZONE} + - PLEX_CLAIM=${CLAIM_TOKEN} + - ADVERTISE_IP=${ADVERTISE_IP} + - HOSTNAME=${HOSTNAME} + - PLEX_UID=${PLEX_UID} + - PLEX_GID=${PLEX_GID} + - CHANGE_CONFIG_DIR_OWNERSHIP=${CHANGE_CONFIG_DIR_OWNERSHIP} + - ALLOWED_NETWORKS=${ALLOWED_NETWORKS} + volumes: + - ${DATABASE_PATH}:/config + - ${TRANSCODE_PATH}:/transcode + - ${MEDIA_PATH}:/data + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/plex/logo.png b/apps/plex/logo.png new file mode 100644 index 00000000..c1356540 Binary files /dev/null and b/apps/plex/logo.png differ