ryanlim / tailscale-nordvpn

Run a Tailscale exit node egressing over NordVPN
GNU General Public License v3.0
18 stars 5 forks source link

Portainer Stack Help #2

Open sekonicpr opened 3 months ago

sekonicpr commented 3 months ago

I'm trying to deploy a stack on portainer, I don't really have much knowledge in docker sorry for the newbie questions. I'm getting this error: "failed to deploy a stack: unable to prepare context: path "/data/compose/210/v1/nordvpn" not found"

What address should I use in this ENV: TAILSCALE_UP_LOGIN_SERVER

This is my compose stack in portainer:


services:
  tailscale:
    image: tailscale/tailscale:latest
    container_name: tailnord-tailscale
    hostname: tailnord-tailscale
    command: [
      '/scripts/tailscale_up.sh'
    ]
    user: root
    restart: always
    volumes:
      - "/dev/net/tun:/dev/net/tun"
      - "/home/user/docker/tailscale/state:/var/lib/tailscale"
      - "/home/user/docker/tailscale/scripts:/scripts"
    environment:
      - TAILSCALE_UP_LOGIN_SERVER=${TAILSCALE_UP_LOGIN_SERVER}
    cap_add:
      - net_admin
      - sys_module
    sysctls:
      - net.ipv4.ip_forward=1
      - net.ipv4.conf.all.forwarding=1
      - net.ipv6.conf.all.forwarding=1
    networks:
      tailnord-net:
        ipv4_address: 10.1.1.2

  nordvpn:
    build:
      context: nordvpn
    container_name: tailnord-nordvpn
    hostname: tailnord-nordvpn
    entrypoint: [
      '/scripts/nordvpn_up.sh'
    ]
    restart: always
    sysctls:
      - net.ipv4.ip_forward=1
      - net.ipv4.conf.all.forwarding=1
      - net.ipv6.conf.all.disable_ipv6=1
    environment:
      - NORDVPN_TOKEN=${NORDVPN_TOKEN}
      - NORDVPN_ENDPOINT=${NORDVPN_ENDPOINT}
      - NORDVPN_TECHNOLOGY=${NORDVPN_TECHNOLOGY}
      - NORDVPN_OPENVPN_PROTOCOL=${NORDVPN_OPENVPN_PROTOCOL}
    volumes:
      - "/dev/net/tun:/dev/net/tun"
      - "/home/user/docker/nordvpn/scripts:/scripts"
    cap_add:
      - net_admin
      - sys_module
    networks:
      tailnord-net:
        ipv4_address: 10.1.1.3

networks:
  tailnord-net:
    enable_ipv6: false
    ipam:
      config:
        - subnet: "10.1.1.0/24"
ryanlim commented 2 months ago

If you do not have an alternate login server, just leave TAILSCALE_UP_LOGIN_SERVER unset.