qBittorrent 是一款开源的 BitTorrent 客户端,它支持多种操作系统,具有简洁易用的界面和丰富的功能,是广大用户进行种子下载的首选工具之一。
而通过 Docker,我们可以轻松地搭建一个私人的 qBittorrent 下载服务器,方便管理和使用。

项目特点

• 开源免费:qBittorrent 是开源项目,可以免费使用,没有任何商业限制。
• 多平台支持:支持 Windows、MacOS、Linux 等多种操作系统,具有良好的跨平台性。
• 简洁易用:提供直观友好的用户界面,操作简单,易于上手。
• 强大功能:支持种子下载、上传、搜索、RSS 订阅等功能,满足用户多样化的需求。

项目安装与部署

1.创建文件夹

在本地系统中创建两个文件夹,用于存放 qBittorrent 的配置文件和下载文件:
mkdir -p ~/qbittorrent/config
mkdir -p ~/qbittorrent/downloads

2. 编写 Docker Compose 配置文件

创建一个名为 docker-compose.yml 的文件,并添加以下内容:

services:
  qbittorrent:
    image: linuxserver/qbittorrent
    container_name: qbittorrent
    restart: unless-stopped
    ports:
      - "6881:6881"
      - "6881:6881/udp"
      - "8080:8080"
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - ~/qbittorrent/config:/config
      - ~/qbittorrent/downloads:/downloads

3. 启动容器

在命令行中进入存放 docker-compose.yml 文件的目录,然后执行以下命令:
docker-compose up -d

4.访问 Web 界面

在浏览器中输入 http://localhost:8080,即可访问 qBittorrent 的 Web 界面。

项目运行与使用

  1. 在 Web 界面中登录 qBittorrent。
  2. 配置下载目录、端口等参数。
  3. 添加种子文件或使用磁力链接进行下载。
  4. 在 Web 界面中查看下载进度和管理下载任务。