You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on if the Wireguard kernel module is available on your system you have more or less choices which example to use.
6
+
7
+
You can check if the kernel modules are available via the following command:
8
+
```shell
9
+
modprobe wireguard
10
+
```
11
+
12
+
If the command exits successfully and doesn't print an error the kernel modules are available.
13
+
If it does error, you either have to install them manually (or activate if deactivated) or use an userspace implementation.
14
+
For an example of an userspace implementation, see _borigtun_.
15
+
16
+
### Credentials
17
+
18
+
Username and password for all examples is `admin` by default.
19
+
For security reasons it's highly recommended to change them before the first startup.
20
+
21
+
## Examples
22
+
-**[system](system.yml)**
23
+
24
+
If you have Wireguard already installed on your system and only want to run the UI in docker this might fit the most.
25
+
-**[linuxserver](linuxserver.yml)**
26
+
27
+
If you have the Wireguard kernel modules installed (included in the mainline kernel since version 5.6) but want it running inside of docker, this might fit the most.
28
+
-**[boringtun](boringtun.yml)**
29
+
30
+
If Wireguard kernel modules are not available, you can switch to an userspace implementation like [boringtun](https://github.com/cloudflare/boringtun).
# use the network of the 'wireguard-ui' service. this enables to show active clients in the status page
10
+
network_mode: service:wireguard-ui
11
+
cap_add:
12
+
- NET_ADMIN
13
+
volumes:
14
+
- /dev/net/tun:/dev/net/tun
15
+
- ./config:/etc/wireguard
16
+
17
+
wireguard-ui:
18
+
image: ngoduykhanh/wireguard-ui:latest
19
+
container_name: wireguard-ui
20
+
cap_add:
21
+
- NET_ADMIN
22
+
environment:
23
+
- SENDGRID_API_KEY
24
+
- EMAIL_FROM_ADDRESS
25
+
- EMAIL_FROM_NAME
26
+
- SESSION_SECRET
27
+
- WGUI_USERNAME=admin
28
+
- WGUI_PASSWORD=admin
29
+
- WG_CONF_TEMPLATE
30
+
- WGUI_MANAGE_START=true
31
+
- WGUI_MANAGE_RESTART=true
32
+
logging:
33
+
driver: json-file
34
+
options:
35
+
max-size: 50m
36
+
volumes:
37
+
- ./db:/app/db
38
+
- ./config:/etc/wireguard
39
+
ports:
40
+
# port for wireguard-ui
41
+
- "5000:5000"
42
+
# port of the wireguard server. this must be set here as the `boringtun` container joins the network of this container and hasn't its own network over which it could publish the ports
# port for wireguard-ui. this must be set here as the `wireguard-ui` container joins the network of this container and hasn't its own network over which it could publish the ports
13
+
- "5000:5000"
14
+
# port of the wireguard server
15
+
- "51820:51820/udp"
16
+
17
+
wireguard-ui:
18
+
image: ngoduykhanh/wireguard-ui:latest
19
+
container_name: wireguard-ui
20
+
depends_on:
21
+
- wireguard
22
+
cap_add:
23
+
- NET_ADMIN
24
+
# use the network of the 'wireguard' service. this enables to show active clients in the status page
0 commit comments