4 image: confluentinc/cp-zookeeper:6.2.0
6 ZOOKEEPER_CLIENT_PORT: 2181
11 image: confluentinc/cp-kafka:6.2.0
14 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
15 KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9082
16 KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka:9092, LOCALHOST://localhost:9082
17 KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
18 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
19 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
20 KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
28 image: confluentinc/cp-schema-registry:6.2.0
29 hostname: schema-registry
33 SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092
34 SCHEMA_REGISTRY_HOST_NAME: schema-registry
35 SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:9081
42 image: juplo/wordcount--recorder:1.0.0
44 juplo.wordcount.recorder.bootstrap-server: kafka:9092
45 juplo.wordcount.recorder.topic: recordings
52 image: juplo/wordcount--users:1.0.0
54 juplo.wordcount.users.bootstrap-server: kafka:9092
55 juplo.wordcount.users.topic: users
62 image: juplo/wordcount--counter:1.0.0
64 juplo.wordcount.counter.bootstrap-server: kafka:9092
65 juplo.wordcount.counter.application-id: counter
66 juplo.wordcount.counter.input-topic: recordings
67 juplo.wordcount.counter.output-topic: countings
74 image: juplo/wordcount--top10:1.0.0
76 juplo.wordcount.top10.bootstrap-server: kafka:9092
77 juplo.wordcount.top10.application-id: top10
78 juplo.wordcount.top10.input-topic: countings
79 juplo.wordcount.top10.output-topic: top10
86 image: juplo/wordcount--query:1.0.2
88 juplo.wordcount.query.bootstrap-server: kafka:9092
89 juplo.wordcount.query.application-id: query
90 juplo.wordcount.query.ranking-input-topic: top10
91 juplo.wordcount.query.users-input-topic: users
98 image: juplo/wordcount--fortune:1.0.0
102 /usr/games/fortune chalkboard
104 | http -v recorder:8080/bart;
110 image: juplo/wordcount--fortune:1.0.0
114 /usr/games/fortune computers
115 | grep -v '^[[:space:]]*--'
116 | http -v recorder:8080/nerd;
122 image: juplo/wordcount--fortune:1.0.0
126 /usr/games/fortune riddles
127 | awk -F':' '/^Q/ { print $$2 }'
128 | http -v recorder:8080/riddler;
136 cub kafka-ready -b kafka:9092 1 60 ;
137 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic recordings ;
138 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic users ;
139 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic countings ;
140 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic top10 ;