created unpoller
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Unpoller Docker Compose Environment Variables
|
||||
|
||||
# Version of the unpoller image to use
|
||||
# See: https://github.com/unpoller/unpoller/releases
|
||||
UNPOLLER_VERSION=latest
|
||||
|
||||
# Absolute path on the host to the unpoller config file (up.conf)
|
||||
# This file configures the UniFi controller connection(s) and output plugins (Prometheus/InfluxDB)
|
||||
# See: https://unpoller.com/docs/install/configuration/
|
||||
UNPOLLER_UP_CONF_PATH=/path/to/up.conf
|
||||
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
app:
|
||||
image: ghcr.io/unpoller/unpoller:${UNPOLLER_VERSION:-latest}
|
||||
container_name: unifi-poller-app
|
||||
volumes:
|
||||
- ${UNPOLLER_UP_CONF_PATH}:/etc/unpoller/up.conf
|
||||
networks:
|
||||
- monitor_network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:9130/metrics || exit 1"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512m
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
monitor_network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user