Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
version: '2'
services:
influxdb:
image: influxdb:latest
ports:
- '8086:8086'
volumes:
- influxdb-storage:/var/lib/influxdb
environment:
- INFLUXDB_URL=${INFLUXDB_URL}
- INFLUXDB_DATABASE=${INFLUXDB_DATABASE}
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
chronograf:
image: chronograf:latest
ports:
- '8888:8888'
volumes:
- chronograf-storage:/var/lib/chronograf
depends_on:
- influxdb
environment:
- INFLUXDB_URL=${INFLUXDB_URL}
- INFLUXDB_DATABASE=${INFLUXDB_DATABASE}
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
grafana:
image: grafana/grafana:latest
ports:
- '3000:3000'
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana-provisioning/:/etc/grafana/provisioning
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
- INFLUXDB_URL=${INFLUXDB_URL}
- INFLUXDB_DATABASE=${INFLUXDB_DATABASE}
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
telegraf:
# image: telegraf:latest
build: ./telegraf
volumes:
- telegraf-storage:/etc/telegraf
- $PWD/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
depends_on:
- influxdb
environment:
- INFLUXDB_URL=${INFLUXDB_URL}
- INFLUXDB_DATABASE=${INFLUXDB_DATABASE}
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
- GNMI_USERNAME=${GNMI_USERNAME}
- GNMI_PASSWORD=${GNMI_PASSWORD}
command: --config-directory /etc/telegraf/telegraf.d
depends_on:
- configurator
configurator:
build: ./configurator
volumes:
- telegraf-storage:/etc/telegraf
- $PWD/config:/config
environment:
- INFLUXDB_URL=${INFLUXDB_URL}
- INFLUXDB_DATABASE=${INFLUXDB_DATABASE}
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
- GNMI_USERNAME=${GNMI_USERNAME}
- GNMI_PASSWORD=${GNMI_PASSWORD}
command: python /config/generate_config.py
volumes:
influxdb-storage:
chronograf-storage:
grafana-storage:
telegraf-storage: