forked from mre/kafka-influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Creates the following container setup:
# collectd -> Kafka -> kafka-influxdb -> InfluxDB
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
links:
- zookeeper:zk
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.99.101
KAFKA_CREATE_TOPICS: "metrics:1:1,benchmark:1:1,my_topic:1:1"
KAFKA_ZOOKEEPER_CONNECT: "zk"
collectd:
image: mre0/collectd
volumes:
- ./contrib/collectd/collectd.conf:/etc/collectd.conf
links:
- kafka:kafka
influxdb:
image: tutum/influxdb:0.9
environment:
PRE_CREATE_DB: "metrics"
volumes:
- ./contrib/influxdb/config.toml:/config/config.toml
ports:
- "2003"
- "8083"
- "8086"
kafkainfluxdb:
build: .
environment:
BENCHMARK: 1
# Uncomment the following three lines for interactive mode:
entrypoint: /bin/bash
stdin_open: true
tty: true
volumes:
- .:/kafka-influxdb
links:
- kafka:kafka
- influxdb:influxdb