Browse Source

Move server, bind www folder

pull/937/head
Daniil Isakov 3 years ago
committed by Sergei Birukov
parent
commit
ed810971c2
  1. 2
      Dockerfile
  2. 3
      docker-compose.dev.yml
  3. 1
      webui/package.json

2
Dockerfile

@ -44,5 +44,5 @@ RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy
ENV DEBUG=Server,WireGuard ENV DEBUG=Server,WireGuard
# Run Web UI # Run Web UI
WORKDIR /app WORKDIR /app/server
CMD ["/usr/bin/dumb-init", "node", "server.js"] CMD ["/usr/bin/dumb-init", "node", "server.js"]

3
docker-compose.dev.yml

@ -3,7 +3,8 @@ services:
image: wg-easy image: wg-easy
command: npm run serve command: npm run serve
volumes: volumes:
- ./src/:/app/ - ./src/:/app/server
- ./webui/dist:/app/www
environment: environment:
# - PASSWORD=p # - PASSWORD=p
- WG_HOST=192.168.1.233 - WG_HOST=192.168.1.233

1
webui/package.json

@ -6,6 +6,7 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"build:watch": "vite build --watch",
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save