docker compose is appreciated

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

    `version: “3” services: gluetun: image: qmcgaw/gluetun container_name: Gluetun restart: unless-stopped cap_add: - NET_ADMIN environment: - VPN_SERVICE_PROVIDER=airvpn - SERVER_COUNTRIES=Netherlands volumes: - C:\Docker Configs\Gluetun:/gluetun

    qbittorrent: image: lscr.io/linuxserver/qbittorrent:latest container_name: qBitTorrent restart: unless-stopped environment: - TZ=PST - WEBUI_PORT=8090 volumes: - C:\Docker Configs\qBitTorrent:/config - M:\Media:/media network_mode: service:gluetun

    Trying to format this nicely but I can’t get code format to work.

    gluetun + qBit

    • Link@rentadrunk.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      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
        0
        ·
        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
        0
        ·
        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.