Created
June 18, 2019 09:56
-
-
Save digikin/22063216526bf1a498eec628723382c1 to your computer and use it in GitHub Desktop.
TICKstack docker-compose file telegraf influxdb chronograf kapacitor
This file contains 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.3" | |
services: | |
telegraf: | |
image: telegraf:1.9.5-alpine | |
networks: | |
- tick-net | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
configs: | |
- source: telegraf-config | |
target: /etc/telegraf/telegraf.conf | |
deploy: | |
restart_policy: | |
condition: on-failure | |
mode: global | |
depends_on: | |
- influxdb | |
influxdb: | |
image: influxdb | |
networks: | |
- tick-net | |
ports: | |
- "8086:8086" | |
configs: | |
- source: kapacitor-config | |
target: /etc/kapacitor/kapacitor.conf | |
deploy: | |
restart_policy: | |
condition: on-failure | |
placement: | |
constraints: | |
- node.role == manager | |
chronograf: | |
image: chronograf | |
networks: | |
- tick-net | |
ports: | |
- "8888:8888" | |
deploy: | |
restart_policy: | |
condition: on-failure | |
placement: | |
constraints: | |
- node.role == manager | |
depends_on: | |
- kapacitor | |
- influxdb | |
kapacitor: | |
image: kapacitor | |
networks: | |
- tick-net | |
configs: | |
- source: kapacitor-config | |
target: /etc/kapacitor/kapacitor.conf | |
deploy: | |
restart_policy: | |
condition: on-failure | |
placement: | |
constraints: | |
- node.role == manager | |
ports: | |
- "9092:9092" | |
depends_on: | |
- influxdb | |
configs: | |
telegraf-config: | |
file: $PWD/conf/telegraf/telegraf.conf | |
kapacitor-config: | |
file: $PWD/conf/kapacitor/kapacitor.conf | |
influx-config: | |
file: $PWD/conf/influx/influx.conf | |
networks: | |
tick-net: | |
#driver: overlay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment