Created
January 12, 2024 15:48
-
-
Save silverl/f64410bf521fff35f5985d8488af8697 to your computer and use it in GitHub Desktop.
Unpoller docker compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
influxdb: | |
restart: always | |
image: influxdb:1.8 | |
ports: | |
- '8086:8086' | |
labels: | |
- "com.centurylinklabs.watchtower.enable=true" | |
volumes: | |
- influxdb-storage:/var/lib/influxdb | |
environment: | |
- INFLUXDB_DB=${INFLUXDB_DB} | |
- INFLUXDB_HTTP_AUTH_ENABLED=${INFLUXDB_HTTP_AUTH_ENABLED} | |
- DOCKER_INFLUXDB_INIT_MODE=setup | |
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_ADMIN_USER} | |
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_ADMIN_PASSWORD} | |
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG} | |
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET} | |
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_ADMIN_TOKEN} | |
- DOCKER_INFLUXDB_INIT_RETENTION=90d | |
prometheus: | |
image: prom/prometheus:latest | |
restart: unless-stopped | |
ports: | |
- '9090:9090' | |
volumes: | |
- ./etc/prometheus:/etc/prometheus | |
- prometheus-storage:/prometheus | |
chronograf: | |
image: chronograf:latest | |
restart: always | |
labels: | |
- "com.centurylinklabs.watchtower.enable=true" | |
ports: | |
- '8888:8888' | |
volumes: | |
- chronograf-storage:/var/lib/chronograf | |
depends_on: | |
- influxdb | |
environment: | |
- INFLUXDB_URL=http://influxdb:8086 | |
- INFLUXDB_USERNAME=${INFLUXDB_ADMIN_USER} | |
- INFLUXDB_PASSWORD=${INFLUXDB_ADMIN_PASSWORD} | |
grafana: | |
image: grafana/grafana:latest | |
labels: | |
- "com.centurylinklabs.watchtower.enable=true" | |
restart: always | |
ports: | |
- '3010:3000' | |
volumes: | |
- grafana-storage:/var/lib/grafana | |
depends_on: | |
- influxdb | |
- prometheus | |
environment: | |
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME} | |
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD} | |
- GF_INSTALL_PLUGINS=grafana-clock-panel,natel-discrete-panel,grafana-piechart-panel | |
unpoller: | |
restart: always | |
image: ghcr.io/unpoller/unpoller:${POLLER_TAG} | |
labels: | |
- "com.centurylinklabs.watchtower.enable=true" | |
ports: | |
- '9130:9130' | |
depends_on: | |
- grafana | |
- influxdb | |
- chronograf | |
environment: | |
- UP_INFLUXDB_DB=${INFLUXDB_DB} | |
- UP_INFLUXDB_USER=${INFLUXDB_ADMIN_USER} | |
- UP_INFLUXDB_PASS=${INFLUXDB_ADMIN_PASSWORD} | |
- UP_INFLUXDB_ORG=${INFLUXDB_ORG} | |
- UP_INFLUXDB_BUCKET=${INFLUXDB_BUCKET} | |
- UP_INFLUXDB_AUTH_TOKEN=${INFLUXDB_ADMIN_TOKEN} | |
- UP_INFLUXDB_URL=http://influxdb:8086 | |
- UP_UNIFI_DEFAULT_USER=${UNIFI_USER} | |
- UP_UNIFI_DEFAULT_PASS=${UNIFI_PASS} | |
- UP_UNIFI_DEFAULT_URL=${UNIFI_URL} | |
- UP_POLLER_DEBUG=${POLLER_DEBUG} | |
- UP_UNIFI_DEFAULT_SAVE_DPI=${POLLER_SAVE_DPI} | |
- UP_PROMETHEUS_HTTP_LISTEN=0.0.0.0:9130 | |
- UP_PROMETHEUS_NAMESPACE=unifipoller | |
volumes: | |
influxdb-storage: | |
chronograf-storage: | |
grafana-storage: | |
prometheus-storage: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment