mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
update wireguard-ui
This commit is contained in:
parent
9dbad59ece
commit
0845b5d0a9
@ -7,6 +7,8 @@ graphite
|
|||||||
- Chew bubblegum.
|
- Chew bubblegum.
|
||||||
- Make it easy to store and graph metrics.
|
- Make it easy to store and graph metrics.
|
||||||
|
|
||||||
|
![](https://github.com/graphite-project/graphite-web/raw/master/webapp/content/img/overview.png)
|
||||||
|
|
||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
43
wireguard-ui/README.md
Normal file
43
wireguard-ui/README.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
wireguard-ui
|
||||||
|
============
|
||||||
|
|
||||||
|
[wireguard-ui][1] is a web user interface to manage your WireGuard setup.
|
||||||
|
|
||||||
|
## up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ apt update
|
||||||
|
$ apt install wireguard
|
||||||
|
$ docker-compose up -d
|
||||||
|
$ curl http://127.0.0.1:5000
|
||||||
|
$ systemctl enable --now wgui.path
|
||||||
|
```
|
||||||
|
|
||||||
|
## systemd integration
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# /etc/systemd/system/wgui.service
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Restart wireguard service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/bin/systemctl restart wg-quick@wg0
|
||||||
|
```
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# /etc/systemd/system/wgui.path
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Watch wireguard config
|
||||||
|
|
||||||
|
[Path]
|
||||||
|
PathModified=/etc/wireguard/wg0.conf
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
[1]: https://github.com/ngoduykhanh/wireguard-ui
|
16
wireguard-ui/docker-compose.yml
Normal file
16
wireguard-ui/docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
wgui:
|
||||||
|
image: ngoduykhanh/wireguard-ui
|
||||||
|
command: ["-bind-address", "0.0.0.0:5000"]
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/db
|
||||||
|
- /etc/wireguard:/etc/wireguard
|
||||||
|
environment:
|
||||||
|
- WGUI_USERNAME=admin
|
||||||
|
- WGUI_PASSWORD=admin
|
||||||
|
- SESSION_SECRET=141a0668-fd9b-4f4e-b5d0-1b0aa8202c5b
|
||||||
|
network_mode: host
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user