fix: easy wg
This commit is contained in:
parent
811b4d4dfa
commit
617afa5d3d
2 changed files with 13 additions and 30 deletions
|
@ -3,7 +3,7 @@ server {
|
||||||
server_name link.ixvd.net;
|
server_name link.ixvd.net;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://wireguard:5000;
|
proxy_pass http://wireguard:51821;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,38 +1,21 @@
|
||||||
version: '2.2'
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
wireguard:
|
wireguard:
|
||||||
image: linuxserver/wireguard:latest
|
image: weejewel/wg-easy
|
||||||
container_name: wireguard
|
restart: unless-stopped
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
volumes:
|
- SYS_MODULE
|
||||||
- /srv/wg/config:/config
|
|
||||||
ports:
|
ports:
|
||||||
- "51820:51820/udp"
|
- "51820:51820/udp"
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
- internal
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
wireguard-ui:
|
|
||||||
image: ngoduykhanh/wireguard-ui:latest
|
|
||||||
container_name: wireguard-ui
|
|
||||||
depends_on:
|
|
||||||
- wireguard
|
|
||||||
cap_add:
|
|
||||||
- NET_ADMIN
|
|
||||||
network_mode: service:wireguard
|
|
||||||
env_file:
|
env_file:
|
||||||
- /etc/ixvd/secrets/env/wg-ui.env
|
- /etc/ixvd/secrets/env/wg.env
|
||||||
environment:
|
environment:
|
||||||
- WGUI_MANAGE_START=true
|
- WG_HOST=link.ixvd.net
|
||||||
- WGUI_MANAGE_RESTART=true
|
sysctls:
|
||||||
restart: unless-stopped
|
- net.ipv4.ip_forward=1
|
||||||
logging:
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
driver: json-file
|
|
||||||
options:
|
|
||||||
max-size: 50m
|
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/wg/other/ui-db:/app/db
|
- /srv/wg/config:/etc/wireguard
|
||||||
- /srv/wg/config:/etc/wireguard
|
networks:
|
||||||
|
- proxy
|
Loading…
Reference in a new issue