hbixu/qbittorrent-openvpn

By hbixu

Updated about 3 years ago

qBittorrent and OpenVPN client

Image
Networking
0

105

hbixu/qbittorrent-openvpn repository overview

Introduction

Docker image based on balenalib/rpi-raspbian:buster image where were added the following features:

  • qBittorrent client
  • OpenVPN client

Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate 'external:internal' respectively. For example, '-p 8080:80' would expose port '80' from inside the container to be accessible from the host's IP on port '8080' outside the container.

ParameterFunction
-p 8082The port for the qBittorrent webinterface
-e OPENVPN_CONFIG=xxxOpenVPN configuration filename (.ovpn)
-e OPENVPN_USERNAME=xxxOpenVPN username
-e OPENVPN_PASSWORD=xxxOpenVPN password
-e OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60OpenVPN options
-e LOCAL_NETWORK=xxx.xxx.xxx.xxx/xxLocal network mask (example: 192.168.1.0/24)
-e DOCKERHOST=xxx.xxx.xxx.xxxDocker host IP (example: 172.17.0.1)
-e PUID=1000For UserID
-e PGID=1000For GroupID
-v /host/configLocation of qBittorrent application data
-v /host/p2p-data/torrentLocation of qBittorrent torrent directory
-v /host/p2p-data/completedLocation of qBittorrent completed directory
-v /host/p2p-data/incompleteLocation of qBittorrent incomplete directory

Docker compose example:

version: "3.8"
services:
  qbittorrent-openvpn:
    image: hbixu/qbittorrent-openvpn:2.0
    container_name: qbittorrent-openvpn
    network_mode: bridge # optional - remove line to use the container default network
    environment:
      - TZ=Europe/Lisbon
      - LOCAL_NETWORK=192.168.1.0/24
      - DOCKERHOST=172.17.0.1
      - PUID=1000
      - PGID=1000
      - OPENVPN_CONFIG=<openvpn-config-file>
      - OPENVPN_USERNAME=<openvpn-username>
      - OPENVPN_PASSWORD=<openvpn-password>
      - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60      
    dns:
      - 1.1.1.1
      - 8.8.8.8
    cap_add:
      - NET_ADMIN
    extra_hosts:
      - dockerhost:172.17.0.1
    devices:
      - /dev/net/tun:/dev/net/tun
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /my-path/config:/host/config
      - /my-path/torrent:/host/p2p-data/torrent
      - /my-path/completed:/host/p2p-data/completed
      - /my-path/incomplete:/host/p2p-data/incomplete
    ports:
      - 8082:8082
    restart: unless-stopped

Tag summary

Content type

Image

Digest

sha256:283e892d1

Size

105.9 MB

Last updated

about 3 years ago

docker pull hbixu/qbittorrent-openvpn:2.0