mirror of
https://github.com/luigieai/homelab.git
synced 2025-07-22 11:26:36 -03:00
back to wg-easy
This commit is contained in:
parent
853a6ba8a1
commit
a97e204755
1 changed files with 18 additions and 25 deletions
|
@ -1,30 +1,23 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
wireguard-ui:
|
wg-easy:
|
||||||
image: ngoduykhanh/wireguard-ui:latest
|
environment:
|
||||||
container_name: wireguard-ui
|
# ⚠️ Change the server's hostname (clients will connect to):
|
||||||
|
- WG_HOST=home.marioverde.com.br
|
||||||
|
# ⚠️ Change the Web UI Password:
|
||||||
|
- PASSWORD
|
||||||
|
image: weejewel/wg-easy
|
||||||
|
container_name: wg-easy
|
||||||
|
hostname: wg-easy
|
||||||
|
volumes:
|
||||||
|
- ~/.wg-easy:/etc/wireguard
|
||||||
|
ports:
|
||||||
|
- "51820:51820/udp"
|
||||||
|
restart: unless-stopped
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
# required to show active clients. with this set, you don't need to expose the ui port (5000) anymore
|
- SYS_MODULE
|
||||||
network_mode: host
|
sysctls:
|
||||||
environment:
|
- net.ipv4.ip_forward=1
|
||||||
- SENDGRID_API_KEY
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
- EMAIL_FROM_ADDRESS
|
|
||||||
- EMAIL_FROM_NAME
|
|
||||||
- SESSION_SECRET
|
|
||||||
- WGUI_USERNAME=admin
|
|
||||||
- WGUI_PASSWORD=admin
|
|
||||||
- WG_CONF_TEMPLATE
|
|
||||||
- WGUI_MANAGE_START=false
|
|
||||||
- WGUI_MANAGE_RESTART=false
|
|
||||||
logging:
|
|
||||||
driver: json-file
|
|
||||||
options:
|
|
||||||
max-size: 50m
|
|
||||||
volumes:
|
|
||||||
- ./db:/app/db
|
|
||||||
- /etc/wireguard:/etc/wireguard
|
|
||||||
ports:
|
|
||||||
# port for wireguard-ui
|
|
||||||
- "5000:5000"
|
|
Loading…
Add table
Reference in a new issue