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: