-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
60 lines (60 loc) · 1.38 KB
/
docker-compose.yaml
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
version: '3'
services:
zookeeper:
image: zookeeper
container_name: zk
ports:
- "2181:2181"
environment:
ZOO_ADMINSERVER_ENABLED: 'false'
kafka1:
image: wurstmeister/kafka
container_name: kafka1
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
DOCKER_API_VERSION: 1.22
KAFKA_ADVERTISED_HOST_NAME: kafka1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_PORT: 9092
kafka2:
image: wurstmeister/kafka
container_name: kafka2
ports:
- "9093:9093"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 2
DOCKER_API_VERSION: 1.22
KAFKA_ADVERTISED_HOST_NAME: kafka2
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_PORT: 9093
kafka3:
image: wurstmeister/kafka
container_name: kafka3
ports:
- "9094:9094"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 3
DOCKER_API_VERSION: 1.22
KAFKA_ADVERTISED_HOST_NAME: kafka3
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_PORT: 9094
akhq:
image: tchiotludo/akhq
container_name: akhq
ports:
- "8080:8080"
environment:
AKHQ_CONFIGURATION: |
akhq:
connections:
local-cluster:
properties:
bootstrap.servers: "kafka1:9092,kafka2:9093,kafka3:9094"