@@ -12,18 +12,40 @@ This replicates as well as possible real deployment configurations, where you ha
1212 - Kafka Topics UI: 0.7.3 (no guarantee as docker images aren't tagged)
1313 - Kafka Connect: Confluent 3.1.2
1414 - Kafka Connect UI: unversioned
15+
16+ # Requirements
17+
18+ ## /etc/hosts changes
19+
20+ If you are using Docker for Mac >= 1.12, Docker for Linux, or Docker for Windows 10, then please add the following lines to ` /etc/hosts ` :
21+ ```
22+ 127.0.0.1 kafka1
23+ 127.0.0.1 kafka2
24+ 127.0.0.1 kafka3
25+ 127.0.0.1 zoo1
26+ 127.0.0.1 zoo2
27+ 127.0.0.1 zoo3
28+ ```
29+
30+ If you are using Docker for Mac <= 1.11, or Docker Toolbox for Windows
31+ (your docker machine IP is usually ` 192.168.99.100 ` )
32+ Please add the following lines to ` /etc/hosts ` :
33+ ```
34+ 192.168.99.100 kafka1
35+ 192.168.99.100 kafka2
36+ 192.168.99.100 kafka3
37+ 192.168.99.100 zoo1
38+ 192.168.99.100 zoo2
39+ 192.168.99.100 zoo3
40+ ```
1541
1642## Single Zookeeper / Single Kafka
1743
1844This configuration fits most development requirements.
1945
20- - Zookeeper will be available at ` localhost :2181`
21- - Kafka will be available at ` localhost :9092`
46+ - Zookeeper will be available at ` zoo1 :2181`
47+ - Kafka will be available at ` kafka1 :9092`
2248
23- Make sure to add to your ` /etc/hosts ` file
24- ```
25- 127.0.0.1 kafka1
26- ```
2749
2850Run with:
2951```
@@ -35,14 +57,9 @@ docker-compose -f zk-single-kafka-single.yml down
3557
3658If you want to have two brokers and experiment with replication / fault-tolerance.
3759
38- - Zookeeper will be available at ` localhost :2181`
39- - Kafka will be available at ` localhost :9092,localhost :9093`
60+ - Zookeeper will be available at ` zoo1 :2181`
61+ - Kafka will be available at ` kafka1 :9092,kafka2 :9093,kafka3:9094 `
4062
41- Make sure to add to your ` /etc/hosts ` file
42- ```
43- 127.0.0.1 kafka1
44- 127.0.0.1 kafka2
45- ```
4663
4764Run with:
4865```
@@ -54,13 +71,8 @@ docker-compose -f zk-single-kafka-multiple.yml down
5471
5572If you want to have three zookeeper and experiment with zookeeper fault-tolerance.
5673
57- - Zookeeper will be available at ` localhost:2181,localhost:2182,localhost:2183 `
58- - Kafka will be available at ` localhost:9092 `
59-
60- Make sure to add to your ` /etc/hosts ` file
61- ```
62- 127.0.0.1 kafka1
63- ```
74+ - Zookeeper will be available at ` zoo1:2181,zoo2:2182,zoo3:2183 `
75+ - Kafka will be available at ` kafka1:9092 `
6476
6577Run with:
6678```
@@ -73,14 +85,8 @@ docker-compose -f zk-multiple-kafka-single.yml down
7385
7486If you want to have three zookeeper and two kafka brokers to experiment with production setup.
7587
76- - Zookeeper will be available at ` localhost:2181,localhost:2182,localhost:2183 `
77- - Kafka will be available at ` localhost:9092,localhost:9093 `
78-
79- Make sure to add to your ` /etc/hosts ` file
80- ```
81- 127.0.0.1 kafka1
82- 127.0.0.1 kafka2
83- ```
88+ - Zookeeper will be available at ` zoo1:2181,zoo2:2182,zoo3:2183 `
89+ - Kafka will be available at ` kafka1:9092,kafka2:9093,kafka3:9094 `
8490
8591Run with:
8692```
@@ -91,8 +97,8 @@ docker-compose -f zk-multiple-kafka-multiple.yml down
9197
9298## Full stack
9399
94- - Single Zookeeper: ` localhost :2181`
95- - Single Kafka: ` localhost :9092`
100+ - Single Zookeeper: ` zoo1 :2181`
101+ - Single Kafka: ` kafka1 :9092`
96102 - Kafka Schema Registry: ` localhost:8081 `
97103 - Kafka Schema Registry UI: ` localhost:8001 `
98104 - Kafka Rest Proxy: ` localhost:8082 `
@@ -101,11 +107,6 @@ docker-compose -f zk-multiple-kafka-multiple.yml down
101107 - Kafka Connect UI: ` localhost:8003 `
102108
103109
104- Make sure to add to your ` /etc/hosts ` file
105- ```
106- 127.0.0.1 kafka1
107- ```
108-
109110 Run with:
110111 ```
111112 docker-compose -f full-stack.yml up
0 commit comments