Skip to content

Instantly share code, notes, and snippets.

@krogebry
Created April 11, 2020 03:39
Show Gist options
  • Select an option

  • Save krogebry/83ca7ea359b83d6413cb55efe38970ad to your computer and use it in GitHub Desktop.

Select an option

Save krogebry/83ca7ea359b83d6413cb55efe38970ad to your computer and use it in GitHub Desktop.
version: '3'
services:
influxdb:
image: influxdb:latest
ports:
- '8086:8086'
volumes:
- /opt/hog/influxdb-storage:/var/lib/influxdb
environment:
- INFLUXDB_DB=db0
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
chronograf:
image: chronograf:latest
ports:
- '127.0.0.1:8888:8888'
volumes:
- /opt/hog/chronograf-storage:/var/lib/chronograf
depends_on:
- influxdb
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
grafana:
image: grafana/grafana:latest
ports:
- '3000:3000'
volumes:
- /opt/hog/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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment