Last active
April 6, 2024 22:11
-
-
Save sdesalas/aeed7c5d7a19bdf8b92d244aeed382d9 to your computer and use it in GitHub Desktop.
Influxdb
This file contains hidden or 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: | |
image: influxdb:latest | |
ports: | |
- '8086:8086' | |
volumes: | |
- ./data/influxdb:/var/lib/influxdb2 | |
environment: | |
- DOCKER_INFLUXDB_INIT_MODE=setup | |
- DOCKER_INFLUXDB_INIT_USERNAME=${USERNAME} | |
- DOCKER_INFLUXDB_INIT_PASSWORD=${PASSWORD} | |
- DOCKER_INFLUXDB_INIT_ORG=esp8266 | |
- DOCKER_INFLUXDB_INIT_BUCKET=metrics | |
chronograf: | |
image: chronograf:latest | |
ports: | |
- '127.0.0.1:8888:8888' | |
volumes: | |
- ./data/chronograf:/var/lib/chronograf | |
depends_on: | |
- influxdb | |
environment: | |
- INFLUXDB_URL=http://influxdb:8086 | |
- INFLUXDB_USERNAME=${USERNAME} | |
- INFLUXDB_PASSWORD=${PASSWORD} | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- '3000:3000' | |
volumes: | |
- ./data/grafana:/var/lib/grafana | |
- ./grafana-provisioning/:/etc/grafana/provisioning | |
depends_on: | |
- influxdb | |
environment: | |
- GF_SECURITY_ADMIN_USER=${USERNAME} | |
- GF_SECURITY_ADMIN_PASSWORD=${PASSWORD} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment