From 7e6d1701258ce0001042efdaaffa3014315db929 Mon Sep 17 00:00:00 2001 From: Giorgos Komninos Date: Sun, 15 Aug 2021 17:04:37 +0300 Subject: [PATCH] Updates README and docker-compose --- README.md | 7 +++++++ docker-compose.yaml | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2d4713b..496121f 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,13 @@ You can take a look at this example of [docker-compose.yml](https://github.com/n ``` docker-compose up ``` + +Note: + +There is a Status option that needs docker to be able to access the network of the host in order to read the +wireguard interface stats. See the `cap_add` and `network_mode` options on the docker-compose.yaml + + ### Environment Variables diff --git a/docker-compose.yaml b/docker-compose.yaml index 1494a72..c83f0f0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,13 +5,14 @@ services: build: . #image: ngoduykhanh/wireguard-ui:latest container_name: wgui + cap_add: + - NET_ADMIN + network_mode: host environment: - SENDGRID_API_KEY - EMAIL_FROM - EMAIL_FROM_NAME - SESSION_SECRET - ports: - - 5000:5000 logging: driver: json-file options: