Skip to content

Instantly share code, notes, and snippets.

@noahcrowley
Created June 28, 2018 16:26
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save noahcrowley/6c8668683c0b0d7b8ecbe624f2a6333e to your computer and use it in GitHub Desktop.
Save noahcrowley/6c8668683c0b0d7b8ecbe624f2a6333e to your computer and use it in GitHub Desktop.
TICK Stack Docker Compose for Raspbian
version: '3'
services:
influxdb:
# Full tag list: https://hub.docker.com/r/library/influxdb/tags/
image: influxdb:latest
volumes:
# Mount for influxdb data directory
- ./influxdb/data:/var/lib/influxdb
# Mount for influxdb configuration
- ./influxdb/config/:/etc/influxdb/
ports:
# The API for InfluxDB is served on port 8086
- "8086:8086"
- "8082:8082"
# UDP Port
- "8089:8089"
telegraf:
# Full tag list: https://hub.docker.com/r/library/telegraf/tags/
image: telegraf:latest
volumes:
# Mount for telegraf configuration
- ./telegraf/:/etc/telegraf/
# Mount for Docker API access
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- influxdb
kapacitor:
# Full tag list: https://hub.docker.com/r/library/kapacitor/tags/
image: kapacitor:latest
volumes:
# Mount for kapacitor data directory
- ./kapacitor/data/:/var/lib/kapacitor
# Mount for kapacitor configuration
- ./kapacitor/config/:/etc/kapacitor/
ports:
# The API for Kapacitor is served on port 9092
- "9092:9092"
chronograf:
# Full tag list: https://hub.docker.com/r/library/chronograf/tags/
image: chronograf:latest
volumes:
# Mount for chronograf database
- ./chronograf/data/:/var/lib/chronograf/
ports:
# The WebUI for Chronograf is served on port 8888
- "8888:8888"
depends_on:
- kapacitor
- influxdb
- telegraf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment