forked from clun/kafka-dse
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-kafka.yml
45 lines (41 loc) · 975 Bytes
/
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
version: '3'
services:
# Ensure consistency in Kafka World
zookeeper:
image: wurstmeister/zookeeper:3.4.6
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
- 2181:2181
# Start the Kafka Engine for Killrvideo
kafka:
image: wurstmeister/kafka:2.11-0.11.0.3
depends_on:
- zookeeper
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "stocks-ticks:1:1"
ports:
- "9092:9092"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafkahq:
image: tchiotludo/kafkahq
environment:
KAFKAHQ_CONFIGURATION: |
{
kafka {
connections {
docker-kafka-server {
bootstrap.servers: "kafka:9092"
}
}
}
}
ports:
- "8080:8080"
depends_on:
- kafka