@@ -13,18 +13,50 @@ This replicates as well as possible real deployment configurations, where you ha
1313 - Kafka Connect: Confluent 3.1.2
1414 - Kafka Connect UI: 0.8.2
1515
16- ## Single Zookeeper / Single Kafka
17-
18- This configuration fits most development requirements.
16+ # Requirements
1917
20- - Zookeeper will be available at ` localhost:2181 `
21- - Kafka will be available at ` localhost:9092 `
18+ ## /etc/hosts changes
2219
23- Make sure to add to your ` /etc/hosts ` file
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 ` :
2421```
2522127.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+ 127.0.0.1 kafka-schema-registry
29+ 127.0.0.1 kafka-schema-registry-ui
30+ 127.0.0.1 kafka-rest-proxy
31+ 127.0.0.1 kafka-topics-ui
32+ 127.0.0.1 kafka-connect-ui
33+ ```
34+
35+ If you are using Docker for Mac <= 1.11, or Docker Toolbox for Windows
36+ (your docker machine IP is usually ` 192.168.99.100 ` )
37+ Please add the following lines to ` /etc/hosts ` :
38+ ```
39+ 192.168.99.100 kafka1
40+ 192.168.99.100 kafka2
41+ 192.168.99.100 kafka3
42+ 192.168.99.100 zoo1
43+ 192.168.99.100 zoo2
44+ 192.168.99.100 zoo3
45+ 192.168.99.100 kafka-schema-registry
46+ 192.168.99.100 kafka-schema-registry-ui
47+ 192.168.99.100 kafka-rest-proxy
48+ 192.168.99.100 kafka-topics-ui
49+ 192.168.99.100 kafka-connect-ui
2650```
2751
52+ ## Single Zookeeper / Single Kafka
53+
54+ This configuration fits most development requirements.
55+
56+ - Zookeeper will be available at ` zoo1:2181 `
57+ - Kafka will be available at ` kafka1:9092 `
58+
59+
2860Run with:
2961```
3062docker-compose -f zk-single-kafka-single.yml up
@@ -35,14 +67,9 @@ docker-compose -f zk-single-kafka-single.yml down
3567
3668If you want to have two brokers and experiment with replication / fault-tolerance.
3769
38- - Zookeeper will be available at ` localhost :2181`
39- - Kafka will be available at ` localhost :9092,localhost :9093`
70+ - Zookeeper will be available at ` zoo1 :2181`
71+ - Kafka will be available at ` kafka1 :9092,kafka2 :9093,kafka3:9094 `
4072
41- Make sure to add to your ` /etc/hosts ` file
42- ```
43- 127.0.0.1 kafka1
44- 127.0.0.1 kafka2
45- ```
4673
4774Run with:
4875```
@@ -54,13 +81,8 @@ docker-compose -f zk-single-kafka-multiple.yml down
5481
5582If you want to have three zookeeper and experiment with zookeeper fault-tolerance.
5683
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- ```
84+ - Zookeeper will be available at ` zoo1:2181,zoo2:2182,zoo3:2183 `
85+ - Kafka will be available at ` kafka1:9092 `
6486
6587Run with:
6688```
@@ -73,14 +95,8 @@ docker-compose -f zk-multiple-kafka-single.yml down
7395
7496If you want to have three zookeeper and two kafka brokers to experiment with production setup.
7597
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- ```
98+ - Zookeeper will be available at ` zoo1:2181,zoo2:2182,zoo3:2183 `
99+ - Kafka will be available at ` kafka1:9092,kafka2:9093,kafka3:9094 `
84100
85101Run with:
86102```
@@ -91,21 +107,16 @@ docker-compose -f zk-multiple-kafka-multiple.yml down
91107
92108## Full stack
93109
94- - Single Zookeeper: ` localhost :2181`
95- - Single Kafka: ` localhost :9092`
96- - Kafka Schema Registry: ` localhost :8081`
97- - Kafka Schema Registry UI: ` localhost :8001`
98- - Kafka Rest Proxy: ` localhost :8082`
99- - Kafka Topics UI: ` localhost :8000`
100- - Kafka Connect: ` localhost :8083`
101- - Kafka Connect UI: ` localhost :8003`
110+ - Single Zookeeper: ` zoo1 :2181`
111+ - Single Kafka: ` kafka1 :9092`
112+ - Kafka Schema Registry: ` kafka-schema-registry :8081`
113+ - Kafka Schema Registry UI: ` kafka-schema-registry-ui :8001`
114+ - Kafka Rest Proxy: ` kafka-rest-proxy :8082`
115+ - Kafka Topics UI: ` kafka-topics-ui :8000`
116+ - Kafka Connect: ` kafka-connect :8083`
117+ - Kafka Connect UI: ` kafka-connect-ui :8003`
102118
103119
104- Make sure to add to your ` /etc/hosts ` file
105- ```
106- 127.0.0.1 kafka1
107- ```
108-
109120 Run with:
110121 ```
111122 docker-compose -f full-stack.yml up
0 commit comments