[Share Experiences] 【Docker】基于docker的自动化观影方案-部署篇
Tofloor
poster avatar
AMZ
deepin
2024-04-04 21:57
Author

简介:

这是一个利用自有主机搭建自动化工具解决找资源(依赖PT)、订阅追剧、下载、自动整理入库、刮削、呈现和推流,最终享受到观影乐趣的方案。

工具:

  1. Moviebot:自动化核心,能够组织起来下载器、媒体库、等实现自动化订阅、自动化整理入库、媒体库刮削、以及其它配套管理工具和插件。
  2. Plex:优秀的自建媒体库工具。
  3. Qbittorrent:配套下载器。
  4. cookiecloud:端到端cookie同步工具。

我们采用docker-compose 方式来部署

Moviebot:
version: "2"
services:
  moviebot:
    image: yipengfei/movie-robot
    volumes:
      - /volume1/docker/moviebot:/data     # 数据目录
      - /volume2/video:/video        #媒体目录
    environment:
      - LICENSE_KEY=17sargkxW3KZzRBaFpRMvVJhDxO9xyhdbrlqht    #一机一码KEY
    restart: always
    hostname: moviebot
    container_name: moviebot
    ports:
      - 1329:1329
    network_mode: host
Plex:
version: "2"
services:
  plex:
    image: plexinc/pms-docker:plexpass
    volumes:
      - /volume1/docker/plex/config:/config    # 配置挂载目录
      - /volume1/docker/plex/transcode:/transcode
      - /volume2/video/电影:/data/电影 
      - /volume2/video/剧集:/data/剧集 
      - /volume2/video/动画:/data/动画
      - /volume1/music:/data/音乐
      - /volume2/video/纪录:/data/纪录  # 你的媒体目录,左侧本地,右侧容器
    environment:
      - PUID=1026         # uid
      - PGID=100          # gid
      - PLEX_CLAIM="claim-ikss8bnNcdcDe4KoGgNJ"        # plex 令牌
      - TZ=Asia/Shanghai  # 时区
    restart: unless-stopped
    network_mode: host
    hostname: plex
    container_name: plex
    ports:
      - 32400:32400    # 访问端口
      - 32469:32469    # DLNA 端口
    devices:
      - "/dev/dri:/dev/dri"   #调用显卡实现硬解码

Qbittorrent:
version: "2"
services:
 qbittorrent:
  image: linuxserver/qbittorrent:latest
  container_name: qbittorrent
  stop_grace_period: 10m    #让qBittorrent程序自行退出后再关闭/删除/重启容器的最长时间,如不设置,则docker默认10秒,内容多的qBittorrent可能还没有完全保存好全部需要保存的信息。
  environment:
   - PUID=1026
   - PGID=100
   - UMASK=022
   - TZ=Asia/Shanghai
   - WEBUI_PORT=7233
  volumes:
   - /volume1/docker/qbittorrent/config:/config
   - /volume2/video/下载:/downloads
  ports:
   - 7233:7233
   - 6881:6881
   - 6881:6881/udp
  restart: unless-stopped
  network_mode: host

cookiecloud
version: '2'
services:
  cookiecloud:
    image: easychen/cookiecloud:latest
    container_name: cookiecloud
    network_mode: bridge
    restart: always
    volumes:
      - /volume1/docker/cookiecloud:/data/api/data
    ports:
      - 7212:8088

截图_选择区域_20240404214638.jpg

Reply Favorite View the author
All Replies
出售星辰之书的书商
Moderator
2024-04-04 22:07
#1
学到了,感谢
Reply View the author
jjcui8595
deepin
2024-04-04 23:08
#2

like

Reply View the author
阿尼樱奈奈
Moderator
2024-04-05 01:28
#3

like

Reply View the author
花雨落逝
Moderator
2024-04-05 09:47
#4

感谢

Reply View the author