docker compose is appreciated

    • Link@rentadrunk.org
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      10 months ago

      Does this only tunnel qbittorrent through the VPN or all traffic on the device?

      • Scipitie@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        10 months ago

        Have exactly the same setup:

        It tunnels everything that is bound to the same network (see the line with gluetun within the qbittorrent container.

        And for anyone using a reverse proxy: that can run against the gluetun container with the bound containers port. (edit: in OPs example gluetun:8090 for qbittorrent web)

      • jws_shadotak@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        10 months ago

        Only qbit I have other stuff in that stack as well, like sonarr and radarr, that I cut out.

        The network mode setting in docker acts as a bind. The port is exposed to the host in gluetun. If gluetun throws an error and shuts down, qBit WebUI is no longer accessible.

    • Lem453@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      I also use glutun, works really well. Lots of VPNs are supported. Easy to add any docker container you want to it.

      • jws_shadotak@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        26
        arrow-down
        16
        ·
        10 months ago

        eh get fucked ya Linux fanboy. Go cry about which distro is best instead of putting me down for trying to help someone.

        • Chewy@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          2
          ·
          10 months ago

          I’m not familiar with docker on Windows, but I believe it runs through a (well integrated) VM. Do you run it 24/7 on your desktop pc? If yes, do you notice a performance impact while e.g. gaming?

          It’s surprising to me how docker managed to be the ultimate way to run services across all major OSs while only running on Linux specifically.

          • jws_shadotak@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            10 months ago

            I run it on a dedicated machine that does all my media management. I’m transitioning to Linux eventually.

            I started out using a pi and installed sonarr and radarr with mono. Then I switched to docker on my spare windows machine. Whenever I get a break in work I’ll switch to Linux completely.

            Since my stuff is already containerized, it should be a painless transition… hopefully. I’ll probably wait until I get a new HDD to transition to a new format since all my stuff is NTFS.

  • trolololol@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    10 months ago

    At this point I don’t know why you’d need docker or VPN to run a torrent and I’m too afraid to ask.

    • pruneaue [she/her]@infosec.pub
      link
      fedilink
      English
      arrow-up
      6
      ·
      10 months ago

      People run their stuff in docker cause it tends to make the process more straight forward.
      The question is specifically about isolating your torrent client to a VPN only network, that way leaks are impossible since if the VPN goes down, there are no other networks accessible to the container.

  • Dasnap@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    10 months ago

    This is the compose file I use, with Gluetun setup with ProtonVPN. I edited it to remove some personal machine stuff so adapt volumes to your liking.

    version: "2.1"
    services:
      jackett:
        image: lscr.io/linuxserver/jackett:latest
        container_name: jackett
        network_mode: service:gluetun
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Europe/London
        volumes:
          - ./data:/config
          - ./downloads:/downloads
        restart: unless-stopped
        depends_on:
          - gluetun
    
      qbittorrent:
        image: lscr.io/linuxserver/qbittorrent:4.5.5-r0-ls291
        container_name: qbittorrent
        network_mode: service:gluetun
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Etc/UTC
          - WEBUI_PORT=8084
        volumes:
          - a-place/qbittorrent/config:/config
          - a-place/qbittorrent:/downloads
        restart: unless-stopped
        depends_on:
          - gluetun
    
      flaresolverr:
        container_name: flaresolverr
        network_mode: service:gluetun
        environment:
          - LOG_LEVEL=info
        restart: unless-stopped
        image: ghcr.io/flaresolverr/flaresolverr:latest
        depends_on:
          - gluetun
    
      gluetun:
        image: qmcgaw/gluetun
        container_name: gluetun
        networks:
          pirate_net:
        cap_add:
          - NET_ADMIN
          - SYS_MODULE
        environment:
          - VPN_SERVICE_PROVIDER=custom
          - VPN_TYPE=wireguard
        ports:
          - 9117:9117 # Jackett
          - 8084:8084
          - 6881:6881
          - 6881:6881/udp
          - 8191:8191 # Flaresolverr
        volumes:
          - ./config/:/gluetun/wireguard/
    
    networks:
      pirate_net:
        driver: bridge
    
  • Appoxo@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    I use gluetun with sabnzbd
    Not torrent tech but yeah.

    I often read about not using two containers but instead to use a combi docker.

  • java@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    10 months ago
    $ cat Projects/qbittorrent/docker-compose.yml 
    version: "2.1"
    services:
      qbittorrent:
        image: lscr.io/linuxserver/qbittorrent:latest
        container_name: qbittorrent
        environment:
          - PUID=1000
          - PGID=1000
          - TZ=Europe/Berlin
          - WEBUI_PORT=8081
        volumes:
          - /path/to/appdata/config:/config
          - /home/username/Downloads/Torrents:/downloads
        ports:
          - 8081:8081
          - 6881:6881
          - 6881:6881/udp
        restart: unless-stopped
    

    The whole server is running under the VPN.