I would like to run Gluetun in its own compose.yaml file, and run qbittorrent in its own compose.yaml file. I want to use the vpn connection Gluetun makes for qbittorrent.
Does anyone have examples of this working? I’ve been messing with the containers, and different docker networks can I cannot get it working.
(my test has been running docker exec -it qbittorrent curl -s https://ifconfig.me/
)
In the qbt compose file, you can set
network_mode: container:gluetun
To use Gluetun’s network namespace for your qbt container. This is how I use qbt over vpn.