From 6c4f58373e4b5563c22a2e61b68fdfd1f0b95598 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 30 Jan 2023 19:28:29 +0100 Subject: [PATCH] Setup und Beispiel in `README.sh` an `supersimple-consumer` angepasst --- README.sh | 11 +---------- docker-compose.yml | 8 ++++++-- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/README.sh b/README.sh index 20c873e..961f7d1 100755 --- a/README.sh +++ b/README.sh @@ -24,15 +24,6 @@ else fi docker-compose up setup -docker-compose up -d producer -docker-compose ps - -docker-compose up -d consumer -sleep 5 -docker-compose stop consumer - -docker-compose start consumer +docker-compose up -d producer consumer sleep 5 - -docker-compose stop producer consumer docker-compose logs consumer diff --git a/docker-compose.yml b/docker-compose.yml index ddef330..90d6e0e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -107,11 +107,15 @@ services: - kafka-3 producer: - image: juplo/simple-producer:1.0-SNAPSHOT - command: kafka:9092 test producer + image: juplo/supersimple-producer:1.0-SNAPSHOT + environment: + spring.kafka.bootstrap-servers: kafka:9092 + spring.kafka.client-id: producer consumer: image: juplo/spring-consumer-kafkalistener:1.0-SNAPSHOT environment: spring.kafka.bootstrap-servers: kafka:9092 spring.kafka.client-id: consumer + spring.kafka.consumer.auto-offset-reset: earliest + logging.level.org.apache.kafka.clients.consumer: INFO -- 2.20.1