Are there any good docker containers that have an openvpn + qbittorrent configuration setup in such a way that the torrents won’t run if the vpn isn’t running?

    • body_by_make@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      This looks cool, but I think I’m missing how this installs in a docker container. I feel stupid for being confused by this 🤔

  • zedricxks@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    So question does a vpn in a docker container directly tunnel that docker to the vpn basically not touching anything outside of it(i.e home ip/net)?

  • microwavedgerbil@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

    haugene/docker-transmission-openvpn might be what you’re looking for. I’ve had success with that container in the past.

  • dustojnikhummer@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 years ago

    I can give you my Gluetun+QBittorrent compose file, but I use it with Wireguard.

    Once you are in the qbittorrent webUI make sure to bind it to the VPN port, which should be tun0.

    services:
      gluetun:
        image: qmcgaw/gluetun
        container_name: qbittorrent_vpn
        cap_add:
          - NET_ADMIN
        environment:
          - VPN_SERVICE_PROVIDER=
          - VPN_TYPE=wireguard
          - WIREGUARD_PRIVATE_KEY==
          - WIREGUARD_ADDRESSES=
          - SERVER_COUNTRIES=
          - TZ=Europe/Prague
        ports:
          - 8080:8080
          - 6881:6881
          - 6881:6881/udp
        restart: unless-stopped
        networks:
          - traefik
    
      qbittorrent:
        image: lscr.io/linuxserver/qbittorrent:latest
        container_name: qbittorrent
        environment:
          - TZ=Europe/Prague
          - WEBUI_PORT=8080
        volumes:
          - /docker/containers/qbittorrent/config:/config
          - /docker/containers/qbittorrent/downloads:/downloads
        restart: unless-stopped
        network_mode: "service:gluetun"
    
    networks:
      traefik:
        external: true