I would like to run Gluetun in its own compose.yaml file, and run qbittorrent in its own compose.yaml file. I want to use the vpn connection Gluetun makes for qbittorrent.

Does anyone have examples of this working? I’ve been messing with the containers, and different docker networks can I cannot get it working.

(my test has been running docker exec -it qbittorrent curl -s https://ifconfig.me/)

  • Guillaume Rossolini@infosec.exchange
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    @Dust0741 you could also get each container to access the other by specifying the stack prefix

    Say you have stack1 and stack2

    Stack1 can have

    networks:  stack2_default:    external: trueservices:  foo:    networks:      - default      - stack2_default
    
  • ki9@lemmy.gf4.pw
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    In the qbt compose file, you can set

    network_mode: container:gluetun
    

    To use Gluetun’s network namespace for your qbt container. This is how I use qbt over vpn.