4 image: confluentinc/cp-zookeeper:7.5.1
6 ZOOKEEPER_CLIENT_PORT: 2181
10 - zookeeper-data:/var/lib/zookeeper/data
11 - zookeeper-log:/var/lib/zookeeper/log
14 image: confluentinc/cp-kafka:7.5.1
16 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
17 KAFKA_LISTENERS: BROKER://:9091, DOCKER://:9092, LOCALHOST://:9081
18 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, DOCKER:SASL_PLAINTEXT, LOCALHOST:SASL_PLAINTEXT
19 KAFKA_ADVERTISED_LISTENERS: BROKER://kafka-1:9091, DOCKER://kafka-1:9092, LOCALHOST://localhost:9081
21 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
22 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
23 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
24 KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
25 KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
27 -javaagent:/usr/share/java/cp-base-new/jmx_prometheus_javaagent-0.18.0.jar=0.0.0.0:80:/etc/jmx-exporter.yml
28 -Dcom.sun.management.jmxremote=true
29 -Dcom.sun.management.jmxremote.port=9101
30 -Dcom.sun.management.jmxremote.authenticate=false
31 KAFKA_METRIC_REPORTERS: com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter
32 KAFKA_CRUISE_CONTROL_METRICS_REPORTER_BOOTSTRAP_SERVERS: localhost:9091
33 KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN
34 KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: |
35 org.apache.kafka.common.security.plain.PlainLoginModule required \
36 user_schemaregistry="schemaregistry-secret" \
37 user_connect="connect-secret" \
39 user_client="client-secret";
40 KAFKA_LISTENER_NAME_LOCALHOST_SASL_ENABLED_MECHANISMS: PLAIN
41 KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: |
42 org.apache.kafka.common.security.plain.PlainLoginModule required \
43 user_client="client-secret";
44 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
45 KAFKA_SASL_ENABLED_MECHANISMS: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512
47 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
48 - ./cruise-control-metrics-reporter.jar:/usr/share/java/kafka/cruise-control-metrics-reporter.jar:ro
49 - kafka-1-data:/var/lib/kafka/data
52 stop_grace_period: 120s
57 image: confluentinc/cp-kafka:7.5.1
59 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
60 KAFKA_LISTENERS: BROKER://:9091, DOCKER://:9092, LOCALHOST://:9082
61 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, DOCKER:SASL_PLAINTEXT, LOCALHOST:SASL_PLAINTEXT
62 KAFKA_ADVERTISED_LISTENERS: BROKER://kafka-2:9091, DOCKER://kafka-2:9092, LOCALHOST://localhost:9082
64 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
65 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
66 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
67 KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
68 KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
70 -javaagent:/usr/share/java/cp-base-new/jmx_prometheus_javaagent-0.18.0.jar=0.0.0.0:80:/etc/jmx-exporter.yml
71 -Dcom.sun.management.jmxremote=true
72 -Dcom.sun.management.jmxremote.port=9101
73 -Dcom.sun.management.jmxremote.authenticate=false
74 KAFKA_METRIC_REPORTERS: com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter
75 KAFKA_CRUISE_CONTROL_METRICS_REPORTER_BOOTSTRAP_SERVERS: localhost:9091
76 KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN
77 KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: |
78 org.apache.kafka.common.security.plain.PlainLoginModule required \
79 user_schemaregistry="schemaregistry-secret" \
80 user_connect="connect-secret" \
82 user_client="client-secret";
83 KAFKA_LISTENER_NAME_LOCALHOST_SASL_ENABLED_MECHANISMS: PLAIN
84 KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: |
85 org.apache.kafka.common.security.plain.PlainLoginModule required \
86 user_client="client-secret";
87 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
88 KAFKA_SASL_ENABLED_MECHANISMS: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512
90 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
91 - ./cruise-control-metrics-reporter.jar:/usr/share/java/kafka/cruise-control-metrics-reporter.jar:ro
92 - kafka-2-data:/var/lib/kafka/data
100 stop_grace_period: 120s
105 image: confluentinc/cp-kafka:7.5.1
107 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
108 KAFKA_LISTENERS: BROKER://:9091, DOCKER://:9092, LOCALHOST://:9083
109 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, DOCKER:SASL_PLAINTEXT, LOCALHOST:SASL_PLAINTEXT
110 KAFKA_ADVERTISED_LISTENERS: BROKER://kafka-3:9091, DOCKER://kafka-3:9092, LOCALHOST://localhost:9083
112 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
113 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
114 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
115 KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
116 KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
118 -javaagent:/usr/share/java/cp-base-new/jmx_prometheus_javaagent-0.18.0.jar=0.0.0.0:80:/etc/jmx-exporter.yml
119 -Dcom.sun.management.jmxremote=true
120 -Dcom.sun.management.jmxremote.port=9101
121 -Dcom.sun.management.jmxremote.authenticate=false
122 KAFKA_METRIC_REPORTERS: com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter
123 KAFKA_CRUISE_CONTROL_METRICS_REPORTER_BOOTSTRAP_SERVERS: localhost:9091
124 KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN
125 KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: |
126 org.apache.kafka.common.security.plain.PlainLoginModule required \
127 user_schemaregistry="schemaregistry-secret" \
128 user_connect="connect-secret" \
129 user_ui="ui-secret" \
130 user_client="client-secret";
131 KAFKA_LISTENER_NAME_LOCALHOST_SASL_ENABLED_MECHANISMS: PLAIN
132 KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: |
133 org.apache.kafka.common.security.plain.PlainLoginModule required \
134 user_client="client-secret";
135 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
136 KAFKA_SASL_ENABLED_MECHANISMS: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512
138 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
139 - ./cruise-control-metrics-reporter.jar:/usr/share/java/kafka/cruise-control-metrics-reporter.jar:ro
140 - kafka-3-data:/var/lib/kafka/data
143 stop_grace_period: 120s
148 image: confluentinc/cp-kafka:7.5.1
150 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
151 KAFKA_LISTENERS: BROKER://:9091, DOCKER://:9092, LOCALHOST://:9084
152 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, DOCKER:SASL_PLAINTEXT, LOCALHOST:SASL_PLAINTEXT
153 KAFKA_ADVERTISED_LISTENERS: BROKER://kafka-4:9091, DOCKER://kafka-4:9092, LOCALHOST://localhost:9084
155 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
156 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
157 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
158 KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
159 KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
161 -javaagent:/usr/share/java/cp-base-new/jmx_prometheus_javaagent-0.18.0.jar=0.0.0.0:80:/etc/jmx-exporter.yml
162 -Dcom.sun.management.jmxremote=true
163 -Dcom.sun.management.jmxremote.port=9101
164 -Dcom.sun.management.jmxremote.authenticate=false
165 KAFKA_METRIC_REPORTERS: com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter
166 KAFKA_CRUISE_CONTROL_METRICS_REPORTER_BOOTSTRAP_SERVERS: localhost:9091
167 KAFKA_LISTENER_NAME_DOCKER_SASL_ENABLED_MECHANISMS: PLAIN
168 KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: |
169 org.apache.kafka.common.security.plain.PlainLoginModule required \
170 user_schemaregistry="schemaregistry-secret" \
171 user_connect="connect-secret" \
172 user_ui="ui-secret" \
173 user_client="client-secret";
174 KAFKA_LISTENER_NAME_LOCALHOST_SASL_ENABLED_MECHANISMS: PLAIN
175 KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: |
176 org.apache.kafka.common.security.plain.PlainLoginModule required \
177 user_client="client-secret";
178 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
179 KAFKA_SASL_ENABLED_MECHANISMS: PLAIN, SCRAM-SHA-256, SCRAM-SHA-512
181 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
182 - ./cruise-control-metrics-reporter.jar:/usr/share/java/kafka/cruise-control-metrics-reporter.jar:ro
183 - kafka-4-data:/var/lib/kafka/data
186 stop_grace_period: 120s
191 image: juplo/cruise-control
193 BOOTSTRAP_SERVERS: kafka-1:9091,kafka-2:9091,kafka-3:9091
194 ZOOKEEPER_CONNECT: zookeeper:2181/
199 image: confluentinc/cp-schema-registry:7.5.1
201 SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: kafka-1:9092,kafka-2:9092,kafka-3:9092
202 SCHEMA_REGISTRY_HOST_NAME: schema-registry
203 SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8085
204 SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: INFO
205 SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL: SASL_PLAINTEXT
206 SCHEMA_REGISTRY_KAFKASTORE_SASL_MECHANISM: PLAIN
207 SCHEMA_REGISTRY_KAFKASTORE_SASL_JAAS_CONFIG: >
208 org.apache.kafka.common.security.plain.PlainLoginModule
210 username="schemaregistry"
211 password="schemaregistry-secret";
220 image: confluentinc/cp-kafka-connect:7.5.1
222 CONNECT_BOOTSTRAP_SERVERS: kafka-1:9092,kafka-2:9092,kafka-3:9092
223 CONNECT_REST_PORT: 8083
224 CONNECT_REST_LISTENERS: http://0.0.0.0:8083
225 CONNECT_REST_ADVERTISED_HOST_NAME: connect
226 CONNECT_CONFIG_STORAGE_TOPIC: __connect-config
227 CONNECT_OFFSET_STORAGE_TOPIC: __connect-offsets
228 CONNECT_STATUS_STORAGE_TOPIC: __connect-status
229 CONNECT_GROUP_ID: kafka-connect
230 CONNECT_KEY_CONVERTER_SCHEMAS_ENABLE: "true"
231 CONNECT_KEY_CONVERTER: io.confluent.connect.avro.AvroConverter
232 CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8085
233 CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE: "true"
234 CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter
235 CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8085
236 CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
237 CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
238 CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1
239 CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1
240 CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1
241 CONNECT_PLUGIN_PATH: /usr/share/java/
242 # Configure the Connect workers to use SASL/PLAIN.
243 CONNECT_SASL_MECHANISM: PLAIN
244 CONNECT_SECURITY_PROTOCOL: SASL_PLAINTEXT
246 CONNECT_SASL_JAAS_CONFIG: >
247 org.apache.kafka.common.security.plain.PlainLoginModule required
249 password="connect-secret";
251 CONNECT_PRODUCER_SASL_MECHANISM: PLAIN
252 CONNECT_PRODUCER_SECURITY_PROTOCOL: SASL_PLAINTEXT
253 CONNECT_PRODUCER_SASL_JAAS_CONFIG: >
254 org.apache.kafka.common.security.plain.PlainLoginModule required
256 password="connect-secret";
258 CONNECT_CONSUMER_SASL_MECHANISM: PLAIN
259 CONNECT_CONSUMER_SECURITY_PROTOCOL: SASL_PLAINTEXT
260 CONNECT_CONSUMER_SASL_JAAS_CONFIG: >
261 org.apache.kafka.common.security.plain.PlainLoginModule required
263 password="connect-secret";
272 command: sleep infinity
273 stop_grace_period: 0s
285 cub kafka-ready -b kafka-1:9091,kafka-2:9091,kafka-3:9091 3 60 > /dev/null 2>&1 || exit 1
286 if [ -e INITIALIZED ]
288 echo -n Bereits konfiguriert:
290 kafka-topics --bootstrap-server kafka:9091 --describe --topic test
291 kafka-topics --bootstrap-server kafka:9091 --describe --topic __CruiseControlMetrics
293 kafka-topics --bootstrap-server kafka:9091 \
297 kafka-topics --bootstrap-server kafka:9091 \
301 --replication-factor 3 \
302 --config min.insync.replicas=2 \
303 && echo Das Topic \'test\' wurde erfolgreich angelegt: \
304 && kafka-topics --bootstrap-server kafka:9091 --describe --topic test
305 kafka-topics --bootstrap-server kafka:9091 \
308 --topic __CruiseControlMetrics
309 kafka-topics --bootstrap-server kafka:9091 \
311 --topic __CruiseControlMetrics \
313 --replication-factor 3 \
314 --config min.insync.replicas=2 \
315 && echo Das Topic \'__CruiseControlMetrics\' wurde erfolgreich angelegt: \
316 && kafka-topics --bootstrap-server kafka:9091 --describe --topic __CruiseControlMetrics
318 && date > INITIALIZED
319 stop_grace_period: 0s
324 image: elkozmon/zoonavigator:1.1.2
329 CONNECTION_JUPLO_NAME: juplo
330 CONNECTION_JUPLO_CONN: zookeeper:2181
331 AUTO_CONNECT_CONNECTION_ID: JUPLO
336 image: tchiotludo/akhq:0.23.0
340 AKHQ_CONFIGURATION: |
345 bootstrap.servers: "kafka:9092"
346 security.protocol: SASL_PLAINTEXT
347 sasl.mechanism: PLAIN
348 sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="ui" password="ui-secret";
350 url: "http://schema-registry:8085"
353 url: "http://connect:8083"
360 image: juplo/endless-stream-spring-producer:1.0-SNAPSHOT
362 producer.throttle-ms: 1
363 spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092
364 spring.kafka.client-id: producer
365 spring.kafka.template.default-topic: test
366 spring.kafka.producer.properties.linger.ms: 100
367 spring.kafka.jaas.enabled: "true"
368 spring.kafka.properties.security.protocol: SASL_PLAINTEXT
369 spring.kafka.properties.sasl.mechanism: PLAIN
370 spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="client" password="client-secret";
373 image: juplo/spring-consumer:1.0-SNAPSHOT
375 spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092
376 spring.kafka.client-id: consumer-1
377 spring.kafka.jaas.enabled: "true"
378 spring.kafka.properties.security.protocol: SASL_PLAINTEXT
379 spring.kafka.properties.sasl.mechanism: PLAIN
380 spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="client" password="client-secret";
383 image: juplo/spring-consumer:1.0-SNAPSHOT
385 spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092
386 spring.kafka.client-id: consumer-1
387 spring.kafka.jaas.enabled: "true"
388 spring.kafka.properties.security.protocol: SASL_PLAINTEXT
389 spring.kafka.properties.sasl.mechanism: PLAIN
390 spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="client" password="client-secret";
393 image: juplo/spring-consumer:1.0-SNAPSHOT
395 spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092
396 spring.kafka.client-id: consumer-1
397 spring.kafka.jaas.enabled: "true"
398 spring.kafka.properties.security.protocol: SASL_PLAINTEXT
399 spring.kafka.properties.sasl.mechanism: PLAIN
400 spring.kafka.properties.sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username="client" password="client-secret";