X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=docker-compose.yml;fp=docker-compose.yml;h=4ace0e1920f0395dc6b072f736f031187495b6cd;hb=refs%2Fheads%2Fround-robin;hp=c2c9bd64447210ccaede7042a8e65199dc6a42b9;hpb=59e6285162b2b441f68c25ba4c969802faf44a2d;p=demos%2Fkafka%2Ftraining diff --git a/docker-compose.yml b/docker-compose.yml index c2c9bd6..4ace0e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,14 @@ version: '3.2' services: zookeeper: - image: confluentinc/cp-zookeeper:6.2.0 + image: confluentinc/cp-zookeeper:7.1.3 environment: ZOOKEEPER_CLIENT_PORT: 2181 ports: - 2181:2181 kafka: - image: confluentinc/cp-kafka:6.2.0 + image: confluentinc/cp-kafka:7.1.3 environment: KAFKA_BROKER_ID: 1 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 @@ -25,7 +25,7 @@ services: - zookeeper kafka-ui: - image: provectuslabs/kafka-ui:0.2.1 + image: provectuslabs/kafka-ui:0.3.3 ports: - 8080:8080 environment: @@ -41,119 +41,20 @@ services: ports: - 8000:8080 environment: + server.port: 8080 producer.bootstrap-server: kafka:9092 producer.client-id: producer producer.topic: test producer.throttle-ms: 10 - count-0: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 0 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - - count-1: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 1 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - - count-2: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 2 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - - count-3: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 3 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - - count-4: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 4 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - - count-5: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 5 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - - count-6: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 6 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " - count-7: - image: juplo/toolbox - command: > - bash -c " - kafka-console-consumer \ - --bootstrap-server kafka:9092 \ - --topic test \ - --partition 7 \ - --property print.key=true \ - --property print.value=false \ - --from-beginning \ - --timeout-ms 1000 2>/dev/null | sort | uniq -c - " + consumer: + image: juplo/endless-consumer:1.0-SNAPSHOT + ports: + - 8081:8080 + environment: + server.port: 8080 + consumer.bootstrap-server: kafka:9092 + consumer.client-id: my-group + consumer.client-id: consumer + consumer.topic: test