version: '3'
services:
plex:
image: plexinc/pms-docker
container_name: plex
restart: unless-stopped
privileged: true
network_mode: host
environment:
- PLEX_CLAIM=claim-xxxxxxxxx
- TZ=Asia/Shanghai
ports:
- "32400:32400"
volumes:
- /vol1/1000/Docker/plex/config:/config
- /vol1/1000/Docker/plex/transcode:/transcode
- /vol1/1000/电影:/movies
直接官方提供的就好plexinc/pms-docker,先创建对应文件夹plex/config和plex/transcode,再拉取镜像,/vol1/1000/电影是你对应的文件夹,不够可以再创建,比如- /vol2/1000/电视剧:/tv,claim-xxxxxxxxx填入你自己的通行证,激活时效只有4分钟,所以如果镜像拉取的比较慢的话,建议创建完容器后,停止一下,手动改成最新的通行证,通行证获取地址https://www.plex.tv/claim/ |