wireguard-ui
wireguard-ui copied to clipboard
UI doesn't load after WG change
Hi, the following is my docker-compose and it works fine with the wireguard image "wireguard:v1.0.20210914-ls7" but when I use anything newer than this or the latest tag the UI won't load.
There was a breaking change after this version which states the following:
"Potentially Breaking Change: Support for multiple interfaces added. Wireguard confs moved to /config/wg_confs/. Any file with a .conf extension in that folder will be treated as a live tunnel config and will be attempted to start. If any of the tunnels fail, all tunnels will be stopped. Tunnels are started in alphabetical order. Managed server conf will continue to be hardcoded to wg0.conf."
I think the issue is that wireguard now uses this new "wg_confs" folder whereas wireguard-ui doesn't account for this and is still looking the wg0.conf file within the config folder and not the wg_confs folder?
I've tried several things but with no luck. Any help or update around this would be great!
services:
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard
cap_add:
- NET_ADMIN
volumes:
- './config:/config'
ports:
- '5001:5000'
- '51820:51820/udp'
wireguard-ui:
image: ngoduykhanh/wireguard-ui:latest
container_name: wireguard-ui
depends_on:
- wireguard
cap_add:
- NET_ADMIN
network_mode: service:wireguard
environment:
- SENDGRID_API_KEY
- EMAIL_FROM_ADDRESS
- EMAIL_FROM_NAME
- SESSION_SECRET
- WGUI_USERNAME=admin
- WGUI_PASSWORD=password
- WG_CONF_TEMPLATE
- WGUI_MANAGE_START=true
- WGUI_MANAGE_RESTART=true
logging:
driver: json-file
options:
max-size: 50m
volumes:
- './db:/app/db'
- './config:/etc/wireguard'```