Skip to content

qTorrent with VPN

Remember the OVPN username and password are saved in the environment variables,


version: "3.3"

networks:
    umbrel_main_network:
      external:
        name: umbrel_main_network

services:
  qbittorrent-openvpn:
    image: alpine-qbittorrent-openvpn
    container_name: qbittorrent-openvpn
    hostname: qbittorrent
    cap_add:
      - NET_ADMIN
    ports:
     - "8080:8080"
    restart: unless-stopped
    environment:
      #- OPENVPN_PROVIDER=WINDSCRIBE
      #- OPENVPN_CONFIG=Paris-Seine-udp
      - OPENVPN_USERNAME=USERNAME
      - OPENVPN_PASSWORD=PASSWORD
      - PUID=1000
      - PGID=1000
      - LAN=192.168.0.0/16
    volumes:
      - "/absolute/path/to/downloads:/downloads"
      - "./config:/config"
      - "/etc/localtime:/etc/localtime:ro"