From 73fec17bdbaf249bac06af184c4b8a1b8b8491da Mon Sep 17 00:00:00 2001 From: David Lee Date: Sun, 26 Apr 2020 17:05:17 -0700 Subject: [PATCH 1/2] Update docker compose and example env file for DPI and IDS polling Add two example env variables for folks who want want to add DPI and IDS polling options in their docker stack. --- init/docker/docker-compose.env.example | 4 +++- init/docker/docker-compose.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/init/docker/docker-compose.env.example b/init/docker/docker-compose.env.example index 3722ef22..5e015fa4 100644 --- a/init/docker/docker-compose.env.example +++ b/init/docker/docker-compose.env.example @@ -11,6 +11,8 @@ GRAFANA_PASSWORD=grafanaadmin #unifi-poller POLLER_TAG=latest POLLER_DEBUG=false +POLLER_SAVE_IDS=false +POLLER_SAVE_DPI=false UNIFI_USER=unifipoller UNIFI_PASS=set_this_on_your_controller -UNIFI_URL=https://127.0.0.1:8443 +UNIFI_URL=https://127.0.0.1:8443 \ No newline at end of file diff --git a/init/docker/docker-compose.yml b/init/docker/docker-compose.yml index 4af07ed3..1f290fcc 100644 --- a/init/docker/docker-compose.yml +++ b/init/docker/docker-compose.yml @@ -51,6 +51,8 @@ services: - UP_UNIFI_DEFAULT_PASS=${UNIFI_PASS} - UP_UNIFI_DEFAULT_URL=${UNIFI_URL} - UP_POLLER_DEBUG=${POLLER_DEBUG} + - UP_UNIFI_DEFAULT_SAVE_IDS=${POLLER_SAVE_IDS} + - UP_UNIFI_DEFAULT_SAVE_DPI=${POLLER_SAVE_DPI} volumes: influxdb-storage: chronograf-storage: From cf249953e4db20fa29a6f5427c53fb4eebd006ff Mon Sep 17 00:00:00 2001 From: David Lee Date: Mon, 27 Apr 2020 22:10:46 -0700 Subject: [PATCH 2/2] remove IDS env var and add back newline addressing PR comments --- init/docker/docker-compose.env.example | 3 +-- init/docker/docker-compose.yml | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/init/docker/docker-compose.env.example b/init/docker/docker-compose.env.example index 5e015fa4..387629f3 100644 --- a/init/docker/docker-compose.env.example +++ b/init/docker/docker-compose.env.example @@ -11,8 +11,7 @@ GRAFANA_PASSWORD=grafanaadmin #unifi-poller POLLER_TAG=latest POLLER_DEBUG=false -POLLER_SAVE_IDS=false POLLER_SAVE_DPI=false UNIFI_USER=unifipoller UNIFI_PASS=set_this_on_your_controller -UNIFI_URL=https://127.0.0.1:8443 \ No newline at end of file +UNIFI_URL=https://127.0.0.1:8443 diff --git a/init/docker/docker-compose.yml b/init/docker/docker-compose.yml index 1f290fcc..c560e3b2 100644 --- a/init/docker/docker-compose.yml +++ b/init/docker/docker-compose.yml @@ -51,7 +51,6 @@ services: - UP_UNIFI_DEFAULT_PASS=${UNIFI_PASS} - UP_UNIFI_DEFAULT_URL=${UNIFI_URL} - UP_POLLER_DEBUG=${POLLER_DEBUG} - - UP_UNIFI_DEFAULT_SAVE_IDS=${POLLER_SAVE_IDS} - UP_UNIFI_DEFAULT_SAVE_DPI=${POLLER_SAVE_DPI} volumes: influxdb-storage: