• 0 Posts
  • 9 Comments
Joined 2 years ago
cake
Cake day: June 23rd, 2024

help-circle


  • skoell13@feddit.orgtoSelfhosted@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 months ago

    This is my setup

    sabnzbd:
        ...
        restart: unless-stopped
        network_mode: "service:gluetun"
    
      gluetun:
        image: qmcgaw/gluetun
        container_name: gluetun
        cap_add:
          - NET_ADMIN
        environment:
          - VPN_SERVICE_PROVIDER=custom
          - VPN_TYPE=wireguard
        devices:
          - /dev/net/tun:/dev/net/tun
        ports:
          - 9090:8080 # SABnzbd webui port forwarding
        volumes:
          - ./Wireguard/wg0.conf:/gluetun/wireguard/wg0.conf:ro
        restart: unless-stopped
    

    Note how i explicitly tell sabnzbd container to use gluetun as a network.

    Afaik, with your setup you simply run both containers in the same network so that both can reach each other.




  • skoell13@feddit.orgtoSelfhosted@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 months ago

    You could maybe try using the wg0.conf and mount this insteas. Here is how I set it up (works with proton and windscribe)

    gluetun:
        image: qmcgaw/gluetun
        container_name: gluetun
        cap_add:
          - NET_ADMIN
        environment:
          - VPN_SERVICE_PROVIDER=custom
          - VPN_TYPE=wireguard
        devices:
          - /dev/net/tun:/dev/net/tun
        ports:
          - 9090:8080 # SABnzbd webui port forwarding
        volumes:
          - ./Wireguard/wg0.conf:/gluetun/wireguard/wg0.conf:ro
        restart: unless-stopped