forked from kafkaex/kayrock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (45 loc) · 1 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
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
- "2181:2181"
kafka1:
image: wurstmeister/kafka:2.12-2.2.0
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_IP}
KAFKA_PORT: 9092
KAFKA_BROKER_ID: 1
volumes:
- ./ssl:/ssl
kafka2:
image: wurstmeister/kafka:2.12-2.2.0
ports:
- "9093:9093"
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_IP}
KAFKA_PORT: 9093
KAFKA_BROKER_ID: 2
volumes:
- ./ssl:/ssl
kafka3:
image: wurstmeister/kafka:2.12-2.2.0
ports:
- "9094:9094"
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_IP}
KAFKA_PORT: 9094
KAFKA_BROKER_ID: 3
volumes:
- ./ssl:/ssl