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/
)
CumBroth@discuss.tchncs.de 4 hours ago
You could use
network_mode: “container:<name>”
instead ofservice:<name>
. See here docs.docker.com/reference/compose-file/services/#…lem@lemmy.world 2 hours ago
I have gluetun and qbittorrent running separately and this works for me.
Dust0741@lemmy.world 2 hours ago
network_mode
is only for multiple containers in the same stack.