Comment on If you already know Docker CLI, is there a reason to use Portainer?

<- View Parent
gamermanh@lemmy.dbzer0.com ⁨1⁩ ⁨month⁩ ago

Ok, had my wife send me the file from my network

networks:

  main-network:

    name: ${COMPOSE\_PROJECT\_NAME}

    attachable: true

    ipam:

      driver: default

      config:

        - subnet: configure

          ip\_range: this

          gateway: yoself

services:

\# Gluetun - <https://github.com/qdm12/gluetun>

  gluetun:

    image: qmcgaw/gluetun

    container\_name: gluetun

    networks:

      - main-network

    cap\_add:

      - NET\_ADMIN

    environment:

      - PUID=${PUID}

      - PGID=${PGID}

      - TZ=${TZ}

      - VPN\_SERVICE\_PROVIDER=custom

      - VPN\_TYPE=wireguard

      - VPN\_PORT\_FORWARDING=true

      - VPN\_PORT\_FORWARDING\_PROVIDER=protonvpn

      - WIREGUARD\_ADDRESSES=use your own

      - WIREGUARD\_ALLOWED\_IPS=0.0.0.0/0

      - WIREGUARD\_PRIVATE\_KEY=nope

      - WIREGUARD\_PUBLIC\_KEY=69420

      - WIREGUARD\_DNS=

      - VPN\_ENDPOINT\_PORT=

      - VPN\_ENDPOINT\_IP=

    volumes:

      - ${DOAPPDAT}/gluetun:/gluetun

I left in the wireguard stuff without my details because for me Gluetun refused to work when setting the exact same info to wg0.conf, so I define it in my compose

Then, services that rely on gluetun go below and look like:

\# qBittorrent - <https://hub.docker.com/r/linuxserver/qbittorrent>

  qbittorrent:

    container\_name: qbittorrent

    network\_mode: container:gluetun

    image: [lscr.io/linuxserver/qbittorrent:latest](http://lscr.io/linuxserver/qbittorrent:latest)

    depends\_on:

          gluetun:

              condition: service\_healthy

    restart: unless-stopped


Works perfectly when I run it through portainer

source
Sort:hotnewtop