Gateway Timeout

I modified my qb2 container to use network_mode: service:vpn so I can change my vpn at will and have the container be agnostic about it. And while I can still access the container via port 8087, traefik is now throwing a generic “Gateway Timeout” message. I suspect it’s because it’s no longer using the traefik_proxy network directive I had before. I dunno, my head is spinning now. Any suggestions?


  vpn:
    image: ghcr.io/bubuntux/nordvpn
    container_name: vpn
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1  # Recomended if using ipv4 only
    network_mode: bridge
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    devices:
      - /dev/net/tun
    environment:
      - USER=beavis@gmail.com    # Required
      - "PASS=Mypass"          # Required
      - CONNECT=United_States
      - TECHNOLOGY=NordLynx
      - NETWORK=172.16.68.0/24     # So it can be accessed within the local network
    ports:
      - "8087:8087"

  qb2:
    image: linuxserver/qbittorrent
    container_name: qb2
    network_mode: service:vpn
    depends_on:
      - vpn
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - LAN_NETWORK=172.16.68.0/24
      - NAME_SERVERS=1.1.1.1,1.0.0.1
      - UMASK_SET=002
      - WEBUI_PORT=8087
    volumes:
      - ${USERDIR}/stacks/media/qb2:/config
      - ${USERDIR}/nas/downloads:/downloads
      - ${USERDIR}/nas:/nas
    restart: unless-stopped
    labels:
      - traefik.frontend.rule=Host:qb2.${DOMAINNAME}
      - traefik.enable=true
      - traefik.frontend.headers.SSLRedirect=true
      - traefik.port=8087