1
0
Fork 0

feat:修改plex镜像

This commit is contained in:
okxlin 2024-06-18 01:16:10 +08:00
parent 5cfceb9576
commit 09d29c4c17
9 changed files with 217 additions and 89 deletions

View File

@ -0,0 +1,17 @@
CONTAINER_NAME="plex"
LIBRARY_PATH="./data/library"
MOVIES_PATH="./data/movies"
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"
PGID="1000"
PLEX_CLAIM=""
PUID="1000"
TIMEZONE="Asia/Shanghai"
TVSERIES_PATH="./data/tv"

123
apps/plex/1.40.3/data.yml Normal file
View File

@ -0,0 +1,123 @@
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: PLEX_CLAIM
labelEn: Plex Claim
labelZh: Plex 认证令牌
required: false
type: text
- default: "1000"
edit: true
envKey: PUID
labelEn: User ID
labelZh: 用户 ID
required: false
type: number
- default: "1000"
edit: true
envKey: PGID
labelEn: Group ID
labelZh: 组 ID
required: false
type: number
- default: "./data/library"
edit: true
envKey: LIBRARY_PATH
labelEn: Library Path
labelZh: Library 路径
required: true
type: text
- default: "./data/tv"
edit: true
envKey: TVSERIES_PATH
labelEn: TV Series Path
labelZh: 电视剧路径
required: true
type: text
- default: "./data/movies"
edit: true
envKey: MOVIES_PATH
labelEn: Movies Path
labelZh: 电影路径
required: true
type: text

View File

@ -0,0 +1,31 @@
services:
plex:
image: "linuxserver/plex:1.40.3"
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:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- VERSION=docker
- PLEX_CLAIM=${PLEX_CLAIM}
volumes:
- ${LIBRARY_PATH}:/config
- ${TVSERIES_PATH}:/tv
- ${MOVIES_PATH}:/movies
networks:
1panel-network:
external: true

View File

@ -1,11 +1,6 @@
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" CONTAINER_NAME="plex"
DATABASE_PATH="./data/plex/database" LIBRARY_PATH="./data/library"
HOSTNAME="plex" MOVIES_PATH="./data/movies"
MEDIA_PATH="./data/media"
PANEL_APP_PORT_HTTP="32400" PANEL_APP_PORT_HTTP="32400"
PANEL_APP_PORT_TCP_3005="3005" PANEL_APP_PORT_TCP_3005="3005"
PANEL_APP_PORT_TCP_32469="32469" PANEL_APP_PORT_TCP_32469="32469"
@ -15,7 +10,8 @@ PANEL_APP_PORT_UDP_32410="32410"
PANEL_APP_PORT_UDP_32412="32412" PANEL_APP_PORT_UDP_32412="32412"
PANEL_APP_PORT_UDP_32413="32413" PANEL_APP_PORT_UDP_32413="32413"
PANEL_APP_PORT_UDP_32414="32414" PANEL_APP_PORT_UDP_32414="32414"
PLEX_GID="" PGID="1000"
PLEX_UID="" PLEX_CLAIM=""
PUID="1000"
TIMEZONE="Asia/Shanghai" TIMEZONE="Asia/Shanghai"
TRANSCODE_PATH="./data/transcode/temp" TVSERIES_PATH="./data/tv"

View File

@ -81,77 +81,43 @@ additionalProperties:
type: text type: text
- default: "" - default: ""
edit: true edit: true
envKey: CLAIM_TOKEN envKey: PLEX_CLAIM
labelEn: Claim Token labelEn: Plex Claim
labelZh: 声明令牌 labelZh: Plex 认证令牌
required: false required: false
type: text type: text
- default: "http://localhost:32400/" - default: "1000"
edit: true edit: true
envKey: ADVERTISE_IP envKey: PUID
labelEn: External URL labelEn: User ID
labelZh: 外部访问地址 labelZh: 用户 ID
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 required: false
type: text type: number
- default: "" - default: "1000"
edit: true edit: true
envKey: PLEX_GID envKey: PGID
labelEn: Plex GID labelEn: Group ID
labelZh: Plex 组 ID labelZh: 组 ID
required: false required: false
type: text type: number
- default: "true" - default: "./data/library"
envKey: CHANGE_CONFIG_DIR_OWNERSHIP edit: true
labelEn: Change Config Dir Ownership envKey: LIBRARY_PATH
labelZh: 更改配置目录所有权 labelEn: Library Path
labelZh: Library 路径
required: true
type: text
- default: "./data/tv"
edit: true
envKey: TVSERIES_PATH
labelEn: TV Series Path
labelZh: 电视剧路径
required: true
type: text
- default: "./data/movies"
edit: true
envKey: MOVIES_PATH
labelEn: Movies Path
labelZh: 电影路径
required: true 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 type: text

View File

@ -1,6 +1,6 @@
services: services:
plex: plex:
image: "plexinc/pms-docker:latest" image: "linuxserver/plex:latest"
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
networks: networks:
@ -16,20 +16,15 @@ services:
- "${PANEL_APP_PORT_UDP_32413}:32413/udp" - "${PANEL_APP_PORT_UDP_32413}:32413/udp"
- "${PANEL_APP_PORT_UDP_32414}:32414/udp" - "${PANEL_APP_PORT_UDP_32414}:32414/udp"
environment: environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
- PLEX_CLAIM=${CLAIM_TOKEN} - VERSION=docker
- ADVERTISE_IP=${ADVERTISE_IP} - PLEX_CLAIM=${PLEX_CLAIM}
- HOSTNAME=${HOSTNAME}
- PLEX_UID=${PLEX_UID}
- PLEX_GID=${PLEX_GID}
- CHANGE_CONFIG_DIR_OWNERSHIP=${CHANGE_CONFIG_DIR_OWNERSHIP}
- ALLOWED_NETWORKS=${ALLOWED_NETWORKS}
volumes: volumes:
- ${DATABASE_PATH}:/config - ${LIBRARY_PATH}:/config
- ${TRANSCODE_PATH}:/transcode - ${TVSERIES_PATH}:/tv
- ${MEDIA_PATH}:/data - ${MOVIES_PATH}:/movies
labels:
createdBy: "Apps"
networks: networks:
1panel-network: 1panel-network:

View File

@ -1,6 +1,6 @@
services: services:
plex: plex:
image: "plexinc/pms-docker:1.40.3.8555-fef15d30c" image: "plexinc/pms-docker:latest"
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
networks: networks: