Hi Binhex, and thank you for the great work putting together this container!
I've got everything working perfectly when I run via "docker run", here is the command I use:
docker run \
--cap-add=NET_ADMIN \
-p 6881:6881 \
-p 6881:6881/udp \
-p 8080:8080 \
-p 8118:8118 \
--name=arch-qbittorrentvpn \
-v /home/tuesday/qbittorrentvpn/download:/data \
-v /home/tuesday/qbittorrentvpn/config:/config \
-v /etc/localtime:/etc/localtime:ro \
-e VPN_ENABLED=yes \
-e VPN_USER=myusername \
-e VPN_PASS=mypassword \
-e VPN_PROV=pia \
-e VPN_CLIENT=openvpn \
-e STRICT_PORT_FORWARD=yes \
-e ENABLE_PRIVOXY=yes \
-e LAN_NETWORK=myexternalIP/32 \
-e NAME_SERVERS=8.8.8.8,1.1.1.1 \
-e ADDITIONAL_PORTS=1234 \
-e DEBUG=false \
-e WEBUI_PORT=8080 \
-e UMASK=000 \
-e PUID=0 \
-e PGID=0 \
binhex/arch-qbittorrentvpn
Unfortunately, I can not get this to work using docker-compose. Here is my compose file:
services:
arch-qbittorrentvpn:
image: binhex/arch-qbittorrentvpn
privileged: true
ports:
- "6881:6881"
- "6881:6881/udp"
- "8080:8080"
- "8118:8118"
environment:
VPN_ENABLED: "yes"
LAN_NETWORK: "myexternalIP/32"
NAME_SERVERS: "8.8.8.8,8.8.4.4,1.1.1.1"
VPN_USERNAME: "myusername"
VPN_PASSWORD: "mypassword"
VPN_PROV: "pia"
VPN_CLIENT: "openvpn"
STRICT_PORT_FORWARD: "yes"
ENABLE_PRIVOXY: "yes"
ADDITIONAL_PORTS: "1234"
DEBUG: "false"
WEBUI_PORT: "8080"
UMASK: "000"
PUID: "0"
PGID: "0"
deploy:
restart_policy:
condition: on-failure
volumes:
- "/home/tuesday/qbittorrentvpn/download:/data"
- "/home/tuesday/qbittorrentvpn/config:/config"
- "/etc/localtime:/etc/localtime:ro"
When I run docker-compose up I receive the following error:
[warn] Unable to successfully download PIA json to generate token from URL 'https://10.0.0.1/authv3/generateToken'
This loops forever and the container never starts properly. I'm using the exact same ovpn file so I don't believe that's the issue. I did try adding the "cap_add: - NET_ADMIN" option to the compose file but the problem remained. Am I missing something obvious?
Thank you,
Tuesday.