diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd0a928 --- /dev/null +++ b/README.md @@ -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. + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..20ae5de --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/first b/first deleted file mode 100644 index 4d1ae35..0000000 --- a/first +++ /dev/null @@ -1 +0,0 @@ -f \ No newline at end of file