Setup und Beispiel in `README.sh` an `supersimple-consumer` angepasst spring-consumer--kafkalistener--vorlage--2023-02-signal spring-consumer--kafkalistener--vorlage-DEPRECATED
authorKai Moritz <kai@juplo.de>
Mon, 30 Jan 2023 18:28:29 +0000 (19:28 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 30 Jan 2023 18:33:01 +0000 (19:33 +0100)
README.sh
docker-compose.yml

index 20c873e..961f7d1 100755 (executable)
--- 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
index ddef330..90d6e0e 100644 (file)
@@ -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