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://:9092, LOCALHOST://:9081
18 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
19 KAFKA_ADVERTISED_LISTENERS: BROKER://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
32 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
33 - kafka-1-data:/var/lib/kafka/data
36 stop_grace_period: 120s
41 image: confluentinc/cp-kafka:7.5.1
43 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
44 KAFKA_LISTENERS: BROKER://:9092, LOCALHOST://:9082
45 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
46 KAFKA_ADVERTISED_LISTENERS: BROKER://kafka-2:9092, LOCALHOST://localhost:9082
48 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
49 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
50 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
51 KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
52 KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
54 -javaagent:/usr/share/java/cp-base-new/jmx_prometheus_javaagent-0.18.0.jar=0.0.0.0:80:/etc/jmx-exporter.yml
55 -Dcom.sun.management.jmxremote=true
56 -Dcom.sun.management.jmxremote.port=9101
57 -Dcom.sun.management.jmxremote.authenticate=false
59 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
60 - kafka-2-data:/var/lib/kafka/data
68 stop_grace_period: 120s
73 image: confluentinc/cp-kafka:7.5.1
75 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
76 KAFKA_LISTENERS: BROKER://:9092, LOCALHOST://:9083
77 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
78 KAFKA_ADVERTISED_LISTENERS: BROKER://kafka-3:9092, LOCALHOST://localhost:9083
80 KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
81 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
82 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
83 KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer
84 KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
86 -javaagent:/usr/share/java/cp-base-new/jmx_prometheus_javaagent-0.18.0.jar=0.0.0.0:80:/etc/jmx-exporter.yml
87 -Dcom.sun.management.jmxremote=true
88 -Dcom.sun.management.jmxremote.port=9101
89 -Dcom.sun.management.jmxremote.authenticate=false
91 - ./jmx-exporter.yml:/etc/jmx-exporter.yml:ro
92 - kafka-3-data:/var/lib/kafka/data
95 stop_grace_period: 120s
100 image: confluentinc/cp-schema-registry:7.5.1
102 SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: kafka-1:9092,kafka-2:9092,kafka-3:9092
103 SCHEMA_REGISTRY_HOST_NAME: schema-registry
104 SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8085
105 SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: INFO
114 image: confluentinc/cp-kafka-connect:7.5.1
116 CONNECT_BOOTSTRAP_SERVERS: kafka-1:9092,kafka-2:9092,kafka-3:9092
117 CONNECT_REST_PORT: 8083
118 CONNECT_REST_LISTENERS: http://0.0.0.0:8083
119 CONNECT_REST_ADVERTISED_HOST_NAME: connect
120 CONNECT_CONFIG_STORAGE_TOPIC: __connect-config
121 CONNECT_OFFSET_STORAGE_TOPIC: __connect-offsets
122 CONNECT_STATUS_STORAGE_TOPIC: __connect-status
123 CONNECT_GROUP_ID: kafka-connect
124 CONNECT_KEY_CONVERTER_SCHEMAS_ENABLE: "true"
125 CONNECT_KEY_CONVERTER: io.confluent.connect.avro.AvroConverter
126 CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8085
127 CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE: "true"
128 CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter
129 CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8085
130 CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
131 CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
132 CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1
133 CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1
134 CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1
135 CONNECT_PLUGIN_PATH: /usr/share/java/
148 cat movies.json | kafka-avro-console-producer
149 --bootstrap-server kafka:9092
151 --property schema.registry.url=http://schema-registry:8085
152 --property value.schema="$$(cat movie.avsc)";
155 - ./movie.avsc:/home/appuser/movie.avsc:ro
156 - ./movies.json:/home/appuser/movies.json:ro
157 stop_grace_period: 0s
169 cub kafka-ready -b kafka-1:9092,kafka-2:9092,kafka-3:9092 3 60 > /dev/null 2>&1 || exit 1
170 if [ -e INITIALIZED ]
172 echo -n Bereits konfiguriert:
174 kafka-topics --bootstrap-server kafka:9092 --describe --topic test
176 kafka-topics --bootstrap-server kafka:9092 \
180 kafka-topics --bootstrap-server kafka:9092 \
184 --replication-factor 3 \
185 --config min.insync.replicas=2 \
186 && echo Das Topic \'test\' wurde erfolgreich angelegt: \
187 && kafka-topics --bootstrap-server kafka:9092 --describe --topic test \
188 && date > INITIALIZED
190 stop_grace_period: 0s
195 image: elkozmon/zoonavigator:1.1.2
200 CONNECTION_JUPLO_NAME: juplo
201 CONNECTION_JUPLO_CONN: zookeeper:2181
202 AUTO_CONNECT_CONNECTION_ID: JUPLO
207 image: tchiotludo/akhq:0.23.0
211 AKHQ_CONFIGURATION: |
216 bootstrap.servers: "kafka:9092"
218 url: "http://schema-registry:8085"
221 url: "http://connect:8083"