From: Kai Moritz Date: Mon, 30 Jan 2023 18:28:29 +0000 (+0100) Subject: Setup und Beispiel in `README.sh` an `supersimple-consumer` angepasst X-Git-Tag: spring-consumer--kafkalistener---2023-06-signal X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=dedc4eff86873be3084a387a9a42779500e46e40;p=demos%2Fkafka%2Ftraining Setup und Beispiel in `README.sh` an `supersimple-consumer` angepasst --- 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