Created
October 22, 2021 17:26
-
-
Save zegerk/7a8d8f2cdb6c15e65287144a4a47554e to your computer and use it in GitHub Desktop.
Docker compose for InfluxDB with Kibana
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
ersion: "3.7" | |
# https://github.com/nicolargo/docker-influxdb-grafana | |
services: | |
influxdb: | |
image: influxdb:latest | |
restart: always | |
container_name: influxdb | |
ports: | |
- "8083:8083" | |
- "8086:8086" | |
- "8090:8090" | |
env_file: | |
- 'env.influxdb' | |
volumes: | |
# Data persistency | |
- /home/xxxxx/docker/influxdb/data:/var/lib/influxdb | |
- /home/xxxxx/docker/influxdb/data.db2:/var/lib/influxdb2 | |
grafana: | |
image: grafana/grafana:latest | |
restart: always | |
container_name: grafana | |
ports: | |
- "3000:3000" | |
env_file: | |
- 'env.grafana' | |
user: "0" | |
links: | |
- influxdb | |
volumes: | |
# Data persistency | |
- /home/xxxxx/docker/influxdb/grafana:/var/lib/grafana | |
- /home/xxxxx/docker/influxdb/grafana_custom.ini:/etc/grafana/grafana.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment