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;
|
||||
|
||||
location / {
|
||||
proxy_pass http://wireguard:5000;
|
||||
proxy_pass http://wireguard:51821;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,38 +1,21 @@
|
|||
version: '2.2'
|
||||
|
||||
version: "3.8"
|
||||
services:
|
||||
wireguard:
|
||||
image: linuxserver/wireguard:latest
|
||||
container_name: wireguard
|
||||
image: weejewel/wg-easy
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
volumes:
|
||||
- /srv/wg/config:/config
|
||||
- SYS_MODULE
|
||||
ports:
|
||||
- "51820:51820/udp"
|
||||
env_file:
|
||||
- /etc/ixvd/secrets/env/wg.env
|
||||
environment:
|
||||
- WG_HOST=link.ixvd.net
|
||||
sysctls:
|
||||
- net.ipv4.ip_forward=1
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
volumes:
|
||||
- /srv/wg/config:/etc/wireguard
|
||||
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:
|
||||
- /etc/ixvd/secrets/env/wg-ui.env
|
||||
environment:
|
||||
- WGUI_MANAGE_START=true
|
||||
- WGUI_MANAGE_RESTART=true
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
volumes:
|
||||
- /srv/wg/other/ui-db:/app/db
|
||||
- /srv/wg/config:/etc/wireguard
|
Loading…
Reference in a new issue