Skip to main content
  1. Posts/

Qbittorrent

Table of Contents

My qBittorrent Setup
#

This qBittorrent setup runs in a Docker container and is used to manage downloads via the qBittorrent web UI. It includes configurations for environment variables, volume mounts, and networking.


Prepare the Downloads Folder
#

sudo mkdir -p /home/server1/downloads
sudo chown -R 1000:1000 /home/server1/downloads

My Docker Compose Configuration
#

services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - WEBUI_PORT=8443
    volumes:
      - /home/server1/qbittorrent/config:/config
      - /home/server1/downloads:/downloads
    ports:
      - "8443:8443"
      - "6881:6881"
      - "6881:6881/udp"
    restart: unless-stopped

Using Docker Secrets for Environment Variables
#

You can set any environment variable from a file by using a special prepend FILE__.

For example:

FILE__MYVAR=/run/secrets/mysecretvariable