From: Kai Moritz Date: Sat, 23 Jul 2022 10:31:39 +0000 (+0200) Subject: Merge der überarbeiteten Compose-Konfiguration ('rest-producer') X-Git-Tag: customized---lvm-2-tage~1 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=d23104b03891cd4d220f7ba1ccac1e5595c709ec;p=demos%2Fkafka%2Ftraining Merge der überarbeiteten Compose-Konfiguration ('rest-producer') --- d23104b03891cd4d220f7ba1ccac1e5595c709ec diff --cc docker-compose.yml index 17a6d46,a16bf67..fe1ad42 --- a/docker-compose.yml +++ b/docker-compose.yml @@@ -36,60 -36,15 +36,67 @@@ services image: juplo/toolbox command: sleep infinity - producer: + producer-0: image: juplo/rest-producer:1.0-SNAPSHOT ports: - - 8080:8080 + - 8000:8080 + environment: ++ server.port: 8080 + producer.bootstrap-server: kafka:9092 + producer.client-id: producer + producer.topic: test + producer.partition: 0 + + producer-1: + image: juplo/rest-producer:1.0-SNAPSHOT + ports: + - 8001:8080 environment: + server.port: 8080 producer.bootstrap-server: kafka:9092 producer.client-id: producer producer.topic: test + producer.partition: 1 + + peter: + image: juplo/rest-client:1.0-SNAPSHOT + environment: ++ server.port: 8080 + rest-client.baseUrl: http://producer-1:8080 + rest-client.username: peter + rest-client.throttle-ms: 1000 + + klaus: + image: juplo/rest-client:1.0-SNAPSHOT + environment: ++ server.port: 8080 + rest-client.baseUrl: http://producer-1:8080 + rest-client.username: klaus + rest-client.throttle-ms: 1100 + + beate: + image: juplo/rest-client:1.0-SNAPSHOT + environment: ++ server.port: 8080 + rest-client.baseUrl: http://producer-0:8080 + rest-client.username: beate + rest-client.throttle-ms: 900 + + franz: + image: juplo/rest-client:1.0-SNAPSHOT + environment: ++ server.port: 8080 + rest-client.baseUrl: http://producer-1:8080 + rest-client.username: franz + rest-client.throttle-ms: 800 + + uschi: + image: juplo/rest-client:1.0-SNAPSHOT + environment: ++ server.port: 8080 + rest-client.baseUrl: http://producer-0:8080 + rest-client.username: uschi + rest-client.throttle-ms: 1200 consumer: image: juplo/endless-consumer:1.0-SNAPSHOT