forked from jbianquetti-nami/bitnami-docker-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cluster.yml
50 lines (48 loc) · 1001 Bytes
/
docker-compose-cluster.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
version: '2'
services:
zookeeper:
image: 'bitnami/zookeeper:3'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: 'bitnami/kafka:2'
ports:
- '9092'
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
volumes:
- 'kafka2_data:/bitnami'
depends_on:
- zookeeper
kafka2:
image: 'bitnami/kafka:2'
ports:
- '9092'
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
volumes:
- 'kafka_data:/bitnami'
depends_on:
- zookeeper
kafka3:
image: 'bitnami/kafka:2'
ports:
- '9092'
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
volumes:
- 'kafka3_data:/bitnami'
depends_on:
- zookeeper
volumes:
kafka_data:
driver: local
kafka2_data:
driver: local
kafka3_data:
driver: local