74 Commits

Author SHA1 Message Date
danroozemond
2dec2d7d25 feat: add docker-compose example for remote (ui.com cloud) mode
Adds docker-compose-remote.yml and matching env example for running
unifi-poller against the UniFi cloud API instead of a local controller.
Uses UP_UNIFI_REMOTE and UP_UNIFI_REMOTE_API_KEY for auto-discovery of
all Network-capable consoles via api.ui.com.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 14:58:18 +02:00
Cody Lee
b960695f3b Add Docker health check support
Implements #406 by adding a --health CLI flag and HEALTHCHECK instruction
to the Dockerfile. This allows Docker and container orchestration platforms
to monitor container health automatically.

Changes:
- Added --health flag that validates configuration and plugin connectivity
- Implemented HealthCheck() method in pkg/poller/commands.go
- Updated Dockerfile with HEALTHCHECK instruction (30s interval, 10s timeout)
- Updated MANUAL.md with --health flag documentation
- Added health check documentation to Docker README
- Added comments to docker-compose examples about built-in health check

The health check:
- Validates configuration file is found and parseable
- Ensures at least one input and one enabled output are configured
- Performs basic validation on enabled outputs
- Returns exit code 0 (healthy) or 1 (unhealthy)
- Runs silently for Docker compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 13:09:10 -06:00
Cody Lee
c503f04ae7 Fixes influxdb init for docker compose
Fixes #623 #558

Thanks to @bcjmk https://github.com/unpoller/unpoller/issues/623#issuecomment-1977691177
2024-03-04 18:18:07 -06:00
David Newhall
46b2871cf0 Update docker-compose.yml 2024-01-01 12:12:11 -08:00
Cody Lee
68e9ec37c6 Update docker-compose.yml
Removes dangling chronograph
2024-01-01 14:05:49 -06:00
Cody Lee
bcfab844ae Update docker-compose.yml
Fix from #633
2023-11-15 18:31:35 -06:00
David Newhall
1d48e1a667 Update docker-compose.yml 2023-09-14 15:40:01 -07:00
David Newhall
a18c0479bc Update docker-compose.yml 2023-09-14 15:39:18 -07:00
Cody Lee
9ffa6e3af9 The elves did a little winter cleaning! They are making room for all the features and bug fixes coming soon, I can almost hear the jolly old ho ho ho! 2022-12-17 08:45:25 -06:00
Cody Lee
fded91ce40 fixed start loop 2022-12-11 13:00:40 -06:00
crustulumtheoneandonly
8b8f2ec3b7 Update unpoller image source from dockerhub to gh 2022-11-23 10:09:21 +01:00
David Newhall II
db1950f681 Add packagecloud integration, remove JFrog 2021-04-13 01:15:51 -07:00
David Newhall II
d897916345 Update application builder 2021-03-15 00:41:09 -07:00
David Newhall
edb4857acc Merge branch 'master' into dn2_events 2021-03-14 23:34:21 -07:00
John Warne
6b750f7016 Specify InfluxDB version 1.8
InfluxDB 1.8 is the latest 1.x version to support the environment variables specified in the `docker-compose.yml`. If set to `latest` the newer 2.x version of InfluxDB is pulled and the user/db is not initialized.
2021-03-01 09:56:00 -07:00
davidnewhall2
2a63fa0939 make web server work in docker 2020-06-28 05:50:44 -07:00
davidnewhall2
98019d0801 fix homebrew and arm docker builds 2020-06-13 21:33:01 -07:00
davidnewhall2
b7c83eebbb Add TZ env usage to set local time zone. 2020-06-13 18:50:32 -07:00
David Newhall II
b46b31827e Merge pull request #217 from davidyilee/update-docker-compose
Update docker compose and example env file for DPI and IDS polling
2020-04-28 00:15:08 -07:00
David Lee
cf249953e4 remove IDS env var and add back newline
addressing PR comments
2020-04-27 22:10:46 -07:00
David Lee
73fec17bdb 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.
2020-04-26 17:05:17 -07:00
L2v2P
d40d218ef8 Update docker-compose.yml
Remove IP address from Chronograf port to make Chronograf accessible from outside of Docker container.
2020-04-23 14:05:54 +02:00
Matthww
46829b8113 Fix Unifi-poller not able to connect
Seems like this commit: ff825c5f32 (diff-e6d152191eedc58f07f2559d4e8736c8) changed the environment to use the UNIFI_USER as a password instead of UNIFI_PASS
2020-02-19 11:42:37 +01:00
Jon Bloom
eeeceafe71 Use latest for docker image tag 2020-02-11 00:44:15 -05:00
jonbloom
8d5ad1c74a Fixes #191 - update env vars, *actually* enable auth 2020-02-10 09:08:52 -05:00
David Newhall II
35d5b785fa Update push 2020-02-06 16:00:31 -08:00
davidnewhall2
ff825c5f32 update docker compose for v2 2020-02-03 00:36:16 -08:00
davidnewhall2
fcb3459593 add major version tag 2020-02-03 00:24:52 -08:00
davidnewhall2
bcea89c2a5 no docker volume uhg 2020-02-02 21:07:36 -08:00
davidnewhall2
876d97bfe5 fix paths 2020-02-01 00:45:10 -08:00
David Newhall II
74dda14268 Merge branch 'master' into dn2_branch 2019-12-30 15:06:03 -08:00
Jon Bloom
b861aad980 Add back in docker-compose files 2019-12-29 23:58:33 -05:00
David Newhall II
0ec3096a20 Delete docker-compose.yml 2019-12-29 20:52:47 -08:00
David Newhall II
2d1fe77630 Delete docker-compose.env.example 2019-12-29 20:52:40 -08:00
Jon Bloom
28165d06f1 Revert "temporarily remove file"
This reverts commit 8a53b9fb5b.
2019-12-29 23:48:05 -05:00
Jon Bloom
8a53b9fb5b temporarily remove file 2019-12-29 23:47:19 -05:00
davidnewhall2
44965a7bbf update librarires (master) 2019-12-29 20:11:31 -08:00
davidnewhall2
d18b1f4f2d fix prerelease build 2019-12-29 18:36:32 -08:00
Ben Kochie
f1e4a3f7b0 Fix up build
* Use `go mod download` for "vendor", as the `vendor/` dir is ignored by
the build anyway.
* Fix branch info embedding when not running in Travis.

Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-29 13:18:00 +01:00
davidnewhall2
4ddff5bb25 go all the way 2019-12-26 20:57:01 -08:00
davidnewhall2
3cf7d89363 fix dock and version 2019-12-26 20:38:55 -08:00
davidnewhall2
3444db73d4 small qol update 2019-11-28 03:34:29 -08:00
David Newhall II
33566daf39 builder has the certs, so use that 2019-10-07 22:50:34 -07:00
David Newhall II
e140b31ec5 Add SSL certificates to Docker container 2019-10-07 22:49:11 -07:00
Dan Wall
84fc443e52 Fix docker compose environment variables 2019-09-10 18:17:31 +10:00
David Newhall II
e2fa5970b8 Merge pull request #110 from davidnewhall/dn2_udm_non_pro
Add AP support to UDM. Fix restart on linux/systemd. Add more debug.
2019-09-09 20:00:43 -07:00
Jon Bloom
5fae40b714 sane defaults 2019-09-09 13:38:14 -04:00
davidnewhall2
e7d9ccbb93 update readmes 2019-09-09 01:33:08 -07:00
Jon Bloom
0676c53f58 rename .env, add newlines, branch in env var 2019-09-06 16:47:24 -04:00
Jon Bloom
7785c5439d add docker-compose for influxdb, chronograf, grafana, unifi-poller 2019-09-06 16:20:09 -04:00