4 image: confluentinc/cp-zookeeper:7.1.3
6 ZOOKEEPER_CLIENT_PORT: 2181
11 image: confluentinc/cp-kafka:7.1.3
14 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
15 KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9081
16 KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka-1:9092, LOCALHOST://localhost:9081
17 KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
18 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
19 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
20 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
27 image: confluentinc/cp-kafka:7.1.3
30 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
31 KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9082
32 KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka-2:9092, LOCALHOST://localhost:9082
33 KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
34 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
35 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
36 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
48 image: confluentinc/cp-kafka:7.1.3
51 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
52 KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9083
53 KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka-3:9092, LOCALHOST://localhost:9083
54 KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
55 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
56 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
57 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
67 kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic test
68 kafka-topics --bootstrap-server kafka:9092 --create --topic test --partitions 2 --replication-factor 3 --config min.insync.replicas=2
69 kafka-topics --bootstrap-server kafka:9092 --describe --topic test
74 command: sleep infinity
77 image: juplo/rest-producer:1.0-SNAPSHOT
82 producer.bootstrap-server: kafka:9092
83 producer.client-id: producer
88 image: juplo/rest-producer:1.0-SNAPSHOT
93 producer.bootstrap-server: kafka:9092
94 producer.client-id: producer
99 image: juplo/rest-client:1.0-SNAPSHOT
102 rest-client.baseUrl: http://producer-1:8080
103 rest-client.username: peter
104 rest-client.throttle-ms: 1000
107 image: juplo/rest-client:1.0-SNAPSHOT
110 rest-client.baseUrl: http://producer-1:8080
111 rest-client.username: klaus
112 rest-client.throttle-ms: 1100
115 image: juplo/rest-client:1.0-SNAPSHOT
118 rest-client.baseUrl: http://producer-0:8080
119 rest-client.username: beate
120 rest-client.throttle-ms: 900
123 image: juplo/rest-client:1.0-SNAPSHOT
126 rest-client.baseUrl: http://producer-1:8080
127 rest-client.username: franz
128 rest-client.throttle-ms: 800
131 image: juplo/rest-client:1.0-SNAPSHOT
134 rest-client.baseUrl: http://producer-0:8080
135 rest-client.username: uschi
136 rest-client.throttle-ms: 1200
140 command: kafkacat -C -b kafka:9092 -t test -o 0 -f'p=%p|o=%o|k=%k|v=%s\n'