qBittorrent and OpenVPN client
105
Docker image based on balenalib/rpi-raspbian:buster image where were added the following features:
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.
| Parameter | Function |
|---|---|
| -p 8082 | The port for the qBittorrent webinterface |
| -e OPENVPN_CONFIG=xxx | OpenVPN configuration filename (.ovpn) |
| -e OPENVPN_USERNAME=xxx | OpenVPN username |
| -e OPENVPN_PASSWORD=xxx | OpenVPN password |
| -e OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 | OpenVPN options |
| -e LOCAL_NETWORK=xxx.xxx.xxx.xxx/xx | Local network mask (example: 192.168.1.0/24) |
| -e DOCKERHOST=xxx.xxx.xxx.xxx | Docker host IP (example: 172.17.0.1) |
| -e PUID=1000 | For UserID |
| -e PGID=1000 | For GroupID |
| -v /host/config | Location of qBittorrent application data |
| -v /host/p2p-data/torrent | Location of qBittorrent torrent directory |
| -v /host/p2p-data/completed | Location of qBittorrent completed directory |
| -v /host/p2p-data/incomplete | Location of qBittorrent incomplete directory |
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
Content type
Image
Digest
sha256:283e892d1…
Size
105.9 MB
Last updated
about 3 years ago
docker pull hbixu/qbittorrent-openvpn:2.0