forked from openflagr/flagr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.kafka.yml
60 lines (56 loc) · 1.17 KB
/
docker-compose.kafka.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
48
49
50
51
52
53
54
55
56
57
58
59
60
mysql:
image: mysql:5.7
ports:
- "18100:3306"
container_name: flagr-mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=flagr
- MYSQL_USER=root
volumes:
- ./_data/mysql:/var/lib/mysql
zookeeper:
image: confluentinc/cp-zookeeper
container_name: flagr-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
extra_hosts:
- "moby:127.0.0.1"
kafka:
image: confluentinc/cp-kafka
container_name: flagr-kafka
links:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://localhost:9092"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_BROKER_ID: 1
ports:
- "9092:9092"
extra_hosts:
- "moby:127.0.0.1"
volumes:
- ./_data/kafka:/var/lib/kafka
kafka-manager:
image: sheepkiller/kafka-manager
container_name: flagr-kafka-manager
ports:
- "9000:9000"
links:
- zookeeper
- kafka
environment:
ZK_HOSTS: "zookeeper:2181"
extra_hosts:
- "moby:127.0.0.1"
elk:
image: sebp/elk
container_name: flagr-elk
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"