name: qbittorrent
services:
  qbittorrent:
    environment:
      PGID: $PGID
      PUID: $PUID
      TZ: $TZ
      UMASK: "002"
    image: hotio/qbittorrent:release-4.5.2
    deploy:
      resources:
        reservations:
          memory: "256M"
    network_mode: bridge
    ports:
      - target: 8080
        published: "8080"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/$AppID/config
        target: /config
      - type: bind
        source: /DATA
        target: /DATA
    x-casaos:
      author: CasaOS Team
      category: Downloader
      container:
        envs:
          - container: TZ
            description:
              en_US: TimeZone
              zh_CN: 时区
          - container: PUID
            description:
              en_US: Run qBittorrent as specified uid.
              zh_CN: 以指定的 uid 运行 qBittorrent。
          - container: PGID
            description:
              en_US: Run qBittorrent as specified gid.
              zh_CN: 以指定的 gid 运行 qBittorrent。
          - container: UMASK
            description:
              en_US: Run qBittorrent as specified UMASK.
              zh_CN: 以指定的 UMASK 运行 qBittorrent。
        index: /
        port_map: "8080"
        ports:
          - container: "8080"
            description:
              en_US: WebUI HTTP Port
              zh_CN: WebUI HTTP 端口

        volumes:
          - container: /config
            description:
              en_US: qBittorrent config directory.
              zh_CN: qBittorrent 配置目录。
          - container: /DATA
            description:
              en_US: qBittorrent Accessible directory.
              zh_CN: qBittorrent 可访问目录。
      description:
        en_US: The qBittorrent project aims to provide an open-source software alternative to µTorrent.
        zh_CN: qBittorrent 项目旨在提供一个开源的 µTorrent 替代品。
      developer: qBittorrent
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/qBittorrent/icon.png
      screenshot_link:
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/qBittorrent/screenshot-1.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/qBittorrent/screenshot-2.jpg
      tagline:
        en_US: Free BitTorrent downloader
        zh_CN: 免费的 BitTorrent 下载器
      thumbnail: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/qBittorrent/thumbnail.jpg
      tips:
        before_install:
          en_US: |
            Default Account

            | Username | Password |
            |----------|----------|
            | `admin`    | `adminadmin` |

            Default Accessible Path in qBittorrent

            | Name | Value |
            | ---- | ----- |
            | DATA Path | `/DATA` |
            | Downloads Path | `/DATA/Downloads` |
            | Media Path | `/DATA/Media` |

            The paths of other DATA subdirectories in CasaOS are also similar.
            Please make sure you use the correct path when using qBittorrent.
          zh_CN: |
            默认账号

            | 用户名 | 密码 |
            |----------|----------|
            | `admin`    | `adminadmin` |

            qBittorrent 默认可访问路径

            | 名称 | 值 |
            | ---- | ----- |
            | DATA 路径 | `/DATA` |
            | 下载路径 | `/DATA/Downloads` |
            | 媒体路径 | `/DATA/Media` |

            CasaOS 其他 DATA 子目录的路径也类似。
            请确保在使用 qBittorrent 时使用正确的路径。

      title:
        en_US: qBittorrent
x-casaos:
  architectures:
    - amd64
    - arm64
  main_app: qbittorrent
