This commit is contained in:
2025-05-23 15:10:13 +02:00
parent 172f1477b8
commit 0496a97bff
3 changed files with 70 additions and 1 deletions

29
README.md Normal file
View File

@@ -0,0 +1,29 @@
# WireGuard UI - Configuration Settings
This repository contains the necessary `docker-compose` configuration for setting up **WireGuard UI**.
## Settings Panel
To configure the settings in the WireGuard UI panel, refer to the images below:
![WireGuard UI Settings](https://scr.ikbengino.nl/upload/312f16e15260c38acb8a490518efaa.png)
![WireGuard UI Settings Panel](https://scr.ikbengino.nl/upload/10a9a424a3250333b95fbca9fc9881.png)
🔹 **Don't forget to save** your changes using the **Save** button in the **top right corner** of the panel!
---
###
postup
iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
postdown
iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
## Using Docker Compose
Make sure to use the provided `docker-compose.yml` to deploy the UI easily.

41
docker-compose.yml Normal file
View File

@@ -0,0 +1,41 @@
version: "3"
services:
wireguard:
image: linuxserver/wireguard:v1.0.20210914-ls6
container_name: wireguard
network_mode: bridge
restart: always
cap_add:
- NET_ADMIN
volumes:
- /root/Docker/wireguard-ui/config:/config
ports:
- "51820:51820/udp"
- "5000:5000/tcp"
wireguard-ui:
image: ngoduykhanh/wireguard-ui:latest
container_name: wireguard-ui
restart: always
depends_on:
- wireguard
cap_add:
- NET_ADMIN
# use the network of the 'wireguard' service. this enables to show active clients in the status page
network_mode: service:wireguard
environment:
- SENDGRID_API_KEY
- EMAIL_FROM_ADDRESS
- EMAIL_FROM_NAME
- WGUI_USERNAME=admin
- WGUI_PASSWORD=admin
- WGUI_MANAGE_START=true
- WGUI_MANAGE_RESTART=true
logging:
driver: json-file
options:
max-size: 50m
volumes:
- /root/Docker/wireguard-ui/ui/db:/app/db
- /root/Docker/wireguard-ui/config:/etc/wireguard

1
first
View File

@@ -1 +0,0 @@
f