Skip to content

Instantly share code, notes, and snippets.

@zegerk
Created October 22, 2021 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zegerk/7a8d8f2cdb6c15e65287144a4a47554e to your computer and use it in GitHub Desktop.
Save zegerk/7a8d8f2cdb6c15e65287144a4a47554e to your computer and use it in GitHub Desktop.
Docker compose for InfluxDB with Kibana
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