From: Kai Moritz Date: Sun, 21 Aug 2022 15:56:43 +0000 (+0200) Subject: Verbesserungen an Setup und Vorführ-Srkipt gemerged X-Git-Tag: sumup-adder---lvm-2-tage~7 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=15d1ea617b16eb4e28d307615b572dff11f44a3a;p=demos%2Fkafka%2Ftraining Verbesserungen an Setup und Vorführ-Srkipt gemerged * Merge branch 'sumup-adder--ohne--stored-offsets' into sumup-adder. * Nur die Verbesserungen an Compose-Setup und Vorführ-Skript übernommen. * Debug-Meldungen für den `KafkaConsumer` deaktivert. --- 15d1ea617b16eb4e28d307615b572dff11f44a3a diff --cc README.sh index 05178a3,9f884c8..500552d --- a/README.sh +++ b/README.sh @@@ -16,8 -18,8 +18,8 @@@ if [ "$1" = "build" ]] then - docker-compose rm -svf adder + docker-compose rm -svf adder-1 adder-2 - mvn -D skipTests clean install || exit + mvn clean install || exit else echo "Using image existing images:" docker image ls $IMAGE diff --cc docker-compose.yml index ba2566e,96fda60..4a4d560 --- a/docker-compose.yml +++ b/docker-compose.yml @@@ -112,18 -112,42 +112,40 @@@ services environment: server.port: 8080 sumup.requests.bootstrap-server: kafka:9092 - sumup.requests.client-id: requests + sumup.requests.client-id: requests-1 - adder: - image: juplo/sumup-adder:1.0-SNAPSHOT + requests-2: + image: juplo/sumup-requests:1.0-SNAPSHOT ports: - 8082:8080 + environment: + server.port: 8080 + sumup.requests.bootstrap-server: kafka:9092 + sumup.requests.client-id: requests-2 + + adder-1: + image: juplo/sumup-adder:1.0-SNAPSHOT + ports: + - 8091:8080 + environment: + server.port: 8080 + sumup.adder.bootstrap-server: kafka:9092 + sumup.adder.client-id: adder-1 + sumup.adder.commit-interval: 3s + spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017 + spring.data.mongodb.database: juplo - logging.level.org.apache.kafka.clients.consumer: DEBUG + + adder-2: + image: juplo/sumup-adder:1.0-SNAPSHOT + ports: + - 8092:8080 environment: server.port: 8080 sumup.adder.bootstrap-server: kafka:9092 - sumup.adder.client-id: adder + sumup.adder.client-id: adder-2 + sumup.adder.commit-interval: 3s spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017 spring.data.mongodb.database: juplo - logging.level.org.apache.kafka.clients.consumer: DEBUG peter: image: juplo/toolbox