2018-02-03 01:11:35 +00:00
|
|
|
|
2016-02-25 03:07:54 +00:00
|
|
|
# qBittorrent with WebUI and OpenVPN
|
2018-02-03 01:50:54 +00:00
|
|
|
Docker container which runs a headless qBittorrent client with WebUI while connecting to OpenVPN.
|
2014-11-09 15:23:18 +00:00
|
|
|
|
2015-05-24 19:09:00 +00:00
|
|
|
## Run container from Docker registry
|
2015-09-10 20:37:03 +00:00
|
|
|
The container is available from the Docker registry and this is the simplest way to get it.
|
|
|
|
To run the container use this command:
|
2014-11-09 15:55:18 +00:00
|
|
|
|
2014-11-16 14:18:02 +00:00
|
|
|
```
|
2015-05-09 17:22:07 +00:00
|
|
|
$ docker run --privileged -d \
|
2018-02-03 00:59:48 +00:00
|
|
|
-v /your/docker/config/path/:/config \
|
|
|
|
-v /your/downloads/path/:/downloads \
|
2018-02-03 04:40:49 +00:00
|
|
|
-e "OPENVPN_USERNAME=username" \
|
|
|
|
-e "OPENVPN_PASSWORD=password" \
|
|
|
|
-e "LAN_NETWORK=192.168.1.0/24" \
|
|
|
|
-e "NAME_SERVERS=8.8.8.8,8.8.4.4" \
|
2018-02-03 04:41:30 +00:00
|
|
|
-e "PUID=99" \
|
|
|
|
-e "PGID=100" \
|
2018-02-03 00:59:48 +00:00
|
|
|
-p 8080:8080 \
|
2018-02-03 04:40:49 +00:00
|
|
|
-p 8999:8999 \
|
2018-02-03 00:59:48 +00:00
|
|
|
markusmcnugen/qbittorrentvpn
|
2015-05-09 17:22:07 +00:00
|
|
|
```
|
2015-05-10 20:25:43 +00:00
|
|
|
|
2018-02-03 00:59:48 +00:00
|
|
|
You must set the environment variables `OPENVPN_USERNAME` and `OPENVPN_PASSWORD` to provide basic connection details.
|
2014-11-16 14:18:02 +00:00
|
|
|
|
2018-02-03 00:59:48 +00:00
|
|
|
As you can see, the container also expects a downloads volume to be mounted.
|
|
|
|
This is where qBittorrent will store your downloads, incomplete downloads and look for a watch directory for new .torrent files.
|
2014-11-16 14:18:02 +00:00
|
|
|
|
2015-05-24 19:09:00 +00:00
|
|
|
### Required environment options
|
2015-05-09 19:49:07 +00:00
|
|
|
| Variable | Function | Example |
|
|
|
|
|----------|----------|-------|
|
2018-02-03 04:40:49 +00:00
|
|
|
|`OPENVPN_USERNAME`|Your OpenVPN username |`OPENVPN_USERNAME=username`|
|
|
|
|
|`OPENVPN_PASSWORD`|Your OpenVPN password |`OPENVPN_PASSWORD=password`|
|
|
|
|
|`LAN_NETWORK`|Local Network with CIDR notation |`OPENVPN_PASSWORD=192.168.1.0/24`|
|
|
|
|
|`NAME_SERVERS`|Comma delimited name servers |`NAME_SERVERS=8.8.8.8,8.8.4.4`|
|
|
|
|
|`PUID`|UID applied to config files |`PUID=99`|
|
|
|
|
|`PGID`|GID applied to config files |`PGID=100`|
|
2015-05-09 19:49:07 +00:00
|
|
|
|
2018-02-03 01:11:35 +00:00
|
|
|
### Access the WebUI
|
2018-02-03 04:40:49 +00:00
|
|
|
Access http://IPADDRESS:8080 from a browser on the same network
|
2014-11-09 15:55:18 +00:00
|
|
|
|
2018-02-03 04:44:27 +00:00
|
|
|
Default username is admin
|
|
|
|
Default password is adminadmin
|
|
|
|
|
|
|
|
### PUID/PGID
|
|
|
|
User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-
|
|
|
|
|
|
|
|
```
|
|
|
|
id <username>
|
|
|
|
```
|
2015-08-15 23:45:53 +00:00
|
|
|
|
2018-02-03 04:44:57 +00:00
|
|
|
###Issues
|
2015-09-10 20:37:03 +00:00
|
|
|
If you are having issues with this container please submit an issue on GitHub.
|
2016-02-09 20:55:20 +00:00
|
|
|
Please provide logs, docker version and other information that can simplify reproducing the issue.
|
2015-09-10 20:37:03 +00:00
|
|
|
Using the latest stable verison of Docker is always recommended. Support for older version is on a best-effort basis.
|
2015-08-15 23:45:53 +00:00
|
|
|
|
|
|
|
## Building the container yourself
|
|
|
|
To build this container, clone the repository and cd into it.
|
|
|
|
|
|
|
|
### Build it:
|
|
|
|
```
|
2018-02-03 01:50:54 +00:00
|
|
|
$ cd /repo/location/qbittorrentvpn
|
|
|
|
$ docker build -t qbittorrentvpn .
|
2015-08-15 23:45:53 +00:00
|
|
|
```
|
|
|
|
### Run it:
|
|
|
|
```
|
|
|
|
$ docker run --privileged -d \
|
2018-02-03 01:50:54 +00:00
|
|
|
-v /your/docker/config/path/:/config \
|
|
|
|
-v /your/downloads/path/:/downloads \
|
2015-08-15 23:45:53 +00:00
|
|
|
-e "OPENVPN_USERNAME=user" \
|
|
|
|
-e "OPENVPN_PASSWORD=pass" \
|
2018-02-03 04:40:49 +00:00
|
|
|
-e "LAN_NETWORK=192.168.1.0/24" \
|
|
|
|
-e "NAME_SERVERS=8.8.8.8,8.8.4.4" \
|
2018-02-03 04:41:30 +00:00
|
|
|
-e "PUID=99" \
|
|
|
|
-e "PGID=100" \
|
2018-02-03 01:50:54 +00:00
|
|
|
-p 8080:8080 \
|
2018-02-03 04:40:49 +00:00
|
|
|
-p 8999:8999 \
|
2018-02-03 01:50:54 +00:00
|
|
|
qbittorrentvpn
|
2015-08-15 23:45:53 +00:00
|
|
|
```
|
|
|
|
|
2016-02-09 20:55:20 +00:00
|
|
|
This will start a container as described in the "Run container from Docker registry" section.
|
2015-08-15 23:45:53 +00:00
|
|
|
|