From a18f2b7e72030f49156865ff81ef25a328a7dfef Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 27 Oct 2023 11:29:52 +0200 Subject: [PATCH] Beispiel Producer & Consumer aufgenommen --- docker/docker-compose.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 875e209..aa37d8e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -211,6 +211,33 @@ services: - kafka-2 - kafka-3 + producer: + image: juplo/spring-endless-stream-producer:1.0-SNAPSHOT + environment: + producer.throttle-ms: 1 + spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092 + spring.kafka.client-id: producer + spring.kafka.template.default-topic: test + spring.kafka.producer.properties.linger.ms: 100 + + consumer-1: + image: juplo/spring-consumer:1.0-SNAPSHOT + environment: + spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092 + spring.kafka.client-id: consumer-1 + + consumer-2: + image: juplo/spring-consumer:1.0-SNAPSHOT + environment: + spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092 + spring.kafka.client-id: consumer-1 + + consumer-3: + image: juplo/spring-consumer:1.0-SNAPSHOT + environment: + spring.kafka.bootstrap-servers: kafka-1:9092, kafka-2:9092, kafka-3:9092 + spring.kafka.client-id: consumer-1 + volumes: zookeeper-data: zookeeper-log: -- 2.20.1