import
This commit is contained in:
29
README.md
Normal file
29
README.md
Normal 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:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
🔹 **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
41
docker-compose.yml
Normal 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
|
||||||
Reference in New Issue
Block a user