perara / wg-manager

A easy to use WireGuard dashboard and management tool
MIT License
594 stars 74 forks source link

Help installing development on docker compose #40

Open HappyShr00m opened 3 years ago

HappyShr00m commented 3 years ago

Hello,

Been sometime now. How are you doing ? Hope all is well.

I have a question, when i try to install the development branch of your script by replacing the line in docker-compose

From:

image: 
perara/wg-manager

To:

build:
      context: https://github.com/perara/wg-manager.git#dev

Such that the final docker-compose script becomes:

version: "2.1"
services:
  wireguard:
    container_name: wg-manager
    build:
      context: https://github.com/perara/wg-manager.git#dev
    restart: always
    sysctls:
      net.ipv6.conf.all.disable_ipv6: 0  # Required for IPV6
    cap_add:
      - NET_ADMIN
    #network_mode: host # Alternatively
    ports:
       - 51800-51900:51800-51900/udp
       - 8888:8888
    volumes:
      - ./wg-manager:/config
    environment:
      HOST: 0.0.0.0
      PORT: 8888
      ADMIN_PASSWORD: admin
      ADMIN_USERNAME: admin
      WEB_CONCURRENCY: 1

I get error when try to lunch docker-compose.

Can you please help me or update the script so it works for the latest dev.build. Thanks

Lombra commented 3 years ago

What error do you get?

HappyShr00m commented 3 years ago

so here is the full log when I enter "docker-compose up"

` Building wireguard Step 1/17 : FROM node:14-alpine ---> 87e4e57acaa5 Step 2/17 : COPY ./wg_dashboard_frontend /tmp/build ---> Using cache ---> c82557893903 Step 3/17 : WORKDIR /tmp/build ---> Using cache ---> b421978967a6 Step 4/17 : RUN apk add --no-cache build-base python3-dev && npm install && npm install -g @angular/cli && rm -rf node_modules && apk del build-base python3-dev ---> Using cache ---> 644eae5aba2a Step 5/17 : RUN ng build --configuration="production" ---> Running in d6bb278c1f92 An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json' Require stack: