Connecting qbittorrent to gluetun

Hi all,

I am new to Linux and docker. But I am playing around to learn. I have CasaOS installed on Ubuntu Server. I have managed to setup and get Gluetun working as a VPN (open VPN).

But I am having trouble getting the linuxserver qbittorrent version to use the VPN container. When I check using curl ifconfig.io in the container terminal, the IP address that is returned is my non VPN IP.

Can someone please advise what I am doing wrong?
Ports 8080 and 6881 TCP/UDP have been added to gluetun.

Here is the code I am using:


services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
network_mode: container:gluetun
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- WEBUI_PORT=8080
- TORRENTING_PORT=6881
volumes:
- /DATA/AppData/qbittorrent:/config
- /Data/torrents:/downloads #optional
# ports:
# - 8080:8080
#- 6881:6881
# - 6881:6881/udp

restart: unless-stopped

Gluetun is not our container and outside our support. It sounds like your VPN isn’t connecting.