
Jackett_Docker Hub地址:https://hub.docker.com/r/linuxserver/jackett
TMDB官网地址:https://www.themoviedb.org
bt-tracker地址:https://github.com/ngosang/trackerslist
nastools好用斋哔哩哔哩:https://www.bilibili.com/video/BV1XJ4m1e7XU/
Aria2好用斋哔哩哔哩:https://www.bilibili.com/video/BV1fS421A7kC
ChineseSubFinder字幕好用斋哔哩哔哩:https://www.bilibili.com/video/BV1pe411U7x7
Aria2 pro地址:http://localhost:6880/
Jackett地址:http://localhost:9117/
ChineseSubFinder地址:http://localhost:19035/
nastools地址:http://localhost:3000/
jellyfin地址:http://localhost:8098/
飞牛 nastools 目录结构
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| root@FnOS:/vol2/1000/media . ├── downloads ├── cartoons ├── movie ├── tv └── link ├── cartoons ├── movie │ └── 华语电影 │ ├── 九龙城寨之围城 (2024) │ │ ├── clearlogo.png │ │ ├── disc.png │ │ ├── fanart.jpg │ │ ├── logo.png │ │ ├── poster.jpg │ │ ├── 九龙城寨之围城 (2024).mkv │ │ └── 九龙城寨之围城 (2024).nfo └── tv
|
1 、新建所需文件夹
1
| mkdir -p /mnt/mydisk/home/nastools /mnt/mydisk/home/nastools/Jackett /mnt/mydisk/home/nastools/chinesesubfinder /mnt/ARS2-NFS/nas/downloads /mnt/ARS2-NFS/nas/link /mnt/ARS2-NFS/nas/link/movie /mnt/ARS2-NFS/nas/link/tv /mnt/ARS2-NFS/nas/movie /mnt/ARS2-NFS/nas/tv
|
2 、终端命令创建docker-compose.yml文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| mkdir -p /mnt/mydisk/home/nastools/{config,Jackett,chinesesubfinder} && \ mkdir -p /mnt/ARS2-NFS/nas/{downloads,link/tv,movie,tv} && \ touch /mnt/mydisk/home/nastools/config/hosts && \ cd /mnt/mydisk/home/nastools && \ touch docker-compose.yml && \ cat > docker-compose.yml <<'EOF' services:
chinesesubfinder: container_name: chinesesubfinder image: allanpk716/chinesesubfinder:latest-lite restart: always network_mode: bridge ports: - 19035:19035 - 19037:19037 volumes: - ./chinesesubfinder:/config - /mnt/ARS2-NFS/nas:/media environment: - PUID=0 - PGID=0 - PERMS=true - TZ=Asia/Shanghai - UMASK=022 hostname: chinesesubfinder logging: driver: json-file options: max-size: 100m
jackett: container_name: jackett image: linuxserver/jackett restart: unless-stopped network_mode: bridge ports: - 9117:9117 volumes: - ./Jackett:/config/Jackett - /mnt/ARS2-NFS/nas/downloads:/downloads environment: - PUID=0 - PGID=0 - TZ=Asia/Shanghai - AUTO_UPDATE=true
nastools: container_name: nastools image: diluka/nas-tools:2.9.1 restart: unless-stopped network_mode: bridge ports: - 3000:3000 volumes: - ./config:/config - ./config/hosts:/etc/hosts - /mnt/ARS2-NFS/nas:/media - /mnt:/mnt:rslave environment: - PUID=0 - PGID=0 - TZ=Asia/Shanghai - NASTOOL_AUTO_UPDATE=false
EOF
docker-compose up -d
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| services: aria2-pro: container_name: aria2-pro image: p3terx/aria2-pro restart: unless-stopped network_mode: bridge ports: - 6800:6800 - 6888:6888 - 6888:6888/udp volumes: - /mnt/mydisk/home/aria2-pro/config:/config - /mnt/ARS2-NFS/downloads/aria2-pro:/downloads environment: - PUID=0 - PGID=0 - RPC_SECRET=haoyong - RPC_PORT=6800 - LISTEN_PORT=6888 - IPV6_MODE=true logging: options: max-size: 1m ariang: container_name: ariang image: p3terx/ariang restart: unless-stopped network_mode: bridge ports: - 6880:6880 command: --port 6880 --ipv6 logging: options: max-size: 1m
|
3 、拉取并运行
1
| cd /mnt/mydisk/home/nastools && docker-compose up -d
|
4 、停止并删除
1
| cd /mnt/mydisk/home/nastools && docker-compose down
|
5 、容器升级
1
| cd /mnt/mydisk/home/nastools && docker-compose down && docker-compose pull && docker-compose up -d && docker image prune -f
|
6 、停止和启动aria2-pro容器
7 、相关教程
设置Aria2 pro地址:http://localhost:6880/
想要更详细的,参考:https://www.bilibili.com/video/BV1fS421A7kC
- 设置Jackett地址:http://localhost:9117/
添加index
- 设置ChineseSubFinder地址:http://localhost:19035/
/media/link/movie
/media/link/tv
配置tmdb和字幕源设置
公用:JOHELaeOJGPBfHSrwHkc4v54wu7XHKu7
(建议自己注册一个,非常简单且不用邮箱确认)
想要更详细的,参考:https://www.bilibili.com/video/BV1pe411U7x7
- 配置
nastools
地址:http://localhost:3000/
用户名 admin
密码 password
修改密码同时设置tmdb api
进行各种对接设置
- 设置jellyfin地址:http://localhost:8098/
路径选择:/mnt/mydisk/nas/link/movie
想要更详细的,windows版参考 https://www.bilibili.com/video/BV11H4y127Rn
istoreos版参考 https://www.bilibili.com/video/BV1yi4y1h7i5


二 、容器维护命令
1 、查看所有运行容器的名称
1
| docker ps -a --format "{{.Names}}"
|
1 2 3
|
docker exec -it nastools bash
|
1
| cat /mnt/mydisk/home/nastools/docker-compose.yml
|
1 、定时任务
1 2
| 20 1 * * * curl -o /tmp/hosts https://ghp.ci/https://raw.githubusercontent.com/775852123/tmdb-hosts/main/hosts && sleep 5 && rsync -avhzp --progress --delete /tmp/hosts /mnt/mydisk/home/nastools/config/hosts
|
2 、查看下载是否成功
3 、查看修改是否成功
1
| cat /mnt/mydisk/home/nastools/config/hosts
|
每天凌晨1点15分,使用curl命令从Gitee的链接下载最新的hosts文件,并将其保存到本地/tmp/hosts文件中。
等待5秒钟,确保文件下载完成。
使用rsync命令将下载的hosts文件同步到/mnt/mydisk/home/emby-amilys/config/hosts目录中。rsync是一个用于同步文件和目录的强大工具,常用于备份和镜像。
Nginx 配置
后台地址:https://nastools.example.com:666
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| mkdir -pm 755 /etc/nginx/conf.d && \ touch /etc/nginx/conf.d/nastools.conf && \ cat <<'EOF' | sed '1!{/^[[:space:]]*#/d;/^[[:space:]]*$/d}' > /etc/nginx/conf.d/nastools.conf
server { listen 666 ssl; listen [::]:666 ssl;
server_name nastools.example.com;
ssl_certificate /etc/nginx/keyfile/cert.pem; ssl_certificate_key /etc/nginx/keyfile/key.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers HIGH:!aNULL:!MD5;
location / { proxy_pass http://10.10.10.251:3000; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; proxy_buffering on; proxy_http_version 1.1; } charset utf-8; error_page 404 500 502 503 504 /50x.html; location = /50x.html { root /var/www/html; } } EOF
sudo systemctl restart nginx
|