Created
November 5, 2019 20:51
-
-
Save limed/46157b7861ada81b5e42bce881ecff84 to your computer and use it in GitHub Desktop.
TICK stack docker-compose setup for local tests
This file contains hidden or 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
version: '3.4' | |
services: | |
influxdb: | |
image: influxdb:latest | |
volumes: | |
- ~/docker/volumes/tick/influx/data:/var/lib/influxdb | |
- ~/docker/volumes/tick/influx/config/:/etc/influxdb | |
environment: | |
INFLUXDB_REPORTING_DISABLED: "true" | |
INFLUXDB_ADMIN_ENABLED: "true" | |
INFLUXDB_DB: "mydb" | |
ports: | |
- "8086:8086" | |
- "8082:8082" | |
- "8089:8089" | |
kapacitor: | |
image: kapacitor:latest | |
environment: | |
KAPACITOR_HOSTNAME: kapacitor | |
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086 | |
ports: | |
- "9092:9092" | |
chronograf: | |
image: chronograf:latest | |
volumes: | |
- ~/docker/volumes/tick/chronograf/data:/var/lib/chronograf | |
ports: | |
- "8888:8888" | |
environment: | |
INFLUXDB_URL: http://influxdb:8086 | |
KAPACITOR_URL: http://kapacitor:9092 | |
REPORTING_DISABLED: "true" | |
depends_on: | |
- influxdb | |
- kapacitor | |
telegraf: | |
image: telegraf:latest | |
env_file: ~/.aws/.aws.env # use if you want to test cloudwatch input locally | |
volumes: | |
- ~/docker/volumes/tick/telegraf/config:/etc/telegraf | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
environment: | |
HOSTNAME: telegraf | |
# Usage: | |
# docker-compose run influxdb-cli | |
influxdb-cli: | |
image: influxdb:latest | |
entrypoint: | |
- influx | |
- -host | |
- influxdb | |
depends_on: | |
- influxdb | |
# docker-compose run kapacitor-cli | |
kapacitor-cli: | |
image: kapacitor:latest | |
entrypoint: bash | |
environment: | |
KAPACITOR_URL: http://kapacitor:9092 | |
depends_on: | |
- influxdb | |
- kapacitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment