X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=docker-compose.yml;h=6bd90a2d96f851eb0afcef848ad1eda86bfb2d01;hb=8bc5bec44bac3686aeef6894c7346238ea95615a;hp=e07b0fc07e9d12443eb1d3988e3493bd535a23d5;hpb=24f97bbd61b2c6646058a84f5de077cd22bfc255;p=demos%2Fkafka%2Fwordcount diff --git a/docker-compose.yml b/docker-compose.yml index e07b0fc..6bd90a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,20 @@ services: depends_on: - zookeeper + schema-registry: + image: confluentinc/cp-schema-registry:6.2.0 + hostname: schema-registry + ports: + - "9081:9081" + environment: + SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092 + SCHEMA_REGISTRY_HOST_NAME: schema-registry + SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:9081 + depends_on: + - zookeeper + - kafka + + recorder: image: juplo/wordcount--recorder:1.0.0 environment: @@ -80,8 +94,44 @@ services: depends_on: - kafka + bart: + image: juplo/wordcount--fortune:1.0.0 + command: bash -c " + while [ true ]; + do + /usr/games/fortune chalkboard + | head -1 + | http -v recorder:8080/bart; + echo; + sleep 1; + done" + + nerd: + image: juplo/wordcount--fortune:1.0.0 + command: bash -c " + while [ true ]; + do + /usr/games/fortune computers + | grep -v '^[[:space:]]*--' + | http -v recorder:8080/nerd; + echo; + sleep 1; + done" + + riddler: + image: juplo/wordcount--fortune:1.0.0 + command: bash -c " + while [ true ]; + do + /usr/games/fortune riddles + | awk -F':' '/^Q/ { print $$2 }' + | http -v recorder:8080/riddler; + echo; + sleep 1; + done" + cli: - image: confluentinc/cp-kafka:6.2.0 + image: juplo/toolbox command: bash -c " cub kafka-ready -b kafka:9092 1 60 ; kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic recordings ; @@ -90,10 +140,6 @@ services: kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic top10 ; sleep infinity" - kafkacat: - image: confluentinc/cp-kafkacat:6.2.0 - command: sleep infinity - networks: default: external: