mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-10 08:53:51 +08:00
2d5796d161
Reimplemented Automatic Wireguard Configuration Generation Setting global Env Vars via the docker image build is still insecure, better to pass to dashboard before init.
26 lines
No EOL
503 B
YAML
26 lines
No EOL
503 B
YAML
services:
|
|
|
|
wireguard-dashboard:
|
|
build: ./
|
|
container_name: wiregate
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
restart: unless-stopped
|
|
environment:
|
|
- wg_net=10.0.0.1/24
|
|
- wg_port=51820
|
|
volumes:
|
|
- wgd_configs:/etc/wireguard
|
|
- wgd_app:/opt/wireguarddashboard/src
|
|
ports:
|
|
- 10086:10086/tcp
|
|
- 51820:51820/udp
|
|
sysctls:
|
|
- net.ipv4.ip_forward=1
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
|
|
|
|
volumes:
|
|
wgd_configs:
|
|
wgd_app: |