Automatically updates the listening port for qbittorrent to the port forwarded by Gluetun.
Gluetun has the ability to forward ports for supported VPN providers, but qbittorrent does not have the ability to update its listening port dynamically. Because of this, I wrote this short script available as a docker container which automatically detects changes to the forwarded_port file created by Gluetun and updates the qbittorrent's listening port.
First, ensure you are able to successfully connect qbittorrent to the forwarded port manually (can be seen by a green globe at the bottom of the WebUI).
Then add a mounted volume to Gluetun (e.g. /yourfolder:/tmp/gluetun).
Finally, insert the template in docker-compose.yml
into your docker-compose containing gluetun, substituting the default values for your own.