Skip to content

Instantly share code, notes, and snippets.

@yanmhlv
Last active January 30, 2017 15:43
Show Gist options
  • Save yanmhlv/bd336e081db7fbd087fec54ceeea9e2c to your computer and use it in GitHub Desktop.
Save yanmhlv/bd336e081db7fbd087fec54ceeea9e2c to your computer and use it in GitHub Desktop.
InfluxDB official docker image + Prometheus
version: '2'
services:
influxdb:
image: influxdb:1.2.0-alpine
ports:
- 8083:8083
- 8086:8086
- 8088:8088
volumes:
- "$PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro"
command: influxd -config /etc/influxdb/influxdb.conf
environment:
- INFLUXDB_GRAPHITE_ENABLED=true
- INFLUXDB_REPORTING_DISABLED=true
# - INFLUXDB_META_DIR=/path/to/metadir
# - INFLUXDB_DATA_QUERY_LOG_ENABLED=false
prometheus:
image: prom/prometheus
ports:
- 9090:9090
@yanmhlv
Copy link
Author

yanmhlv commented Jan 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment