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: juplo/wordcount--recorder:1.0.0
30 juplo.wordcount.recorder.bootstrap-server: kafka:9092
31 juplo.wordcount.recorder.topic: recordings
38 image: juplo/wordcount--users:1.0.0
40 juplo.wordcount.users.bootstrap-server: kafka:9092
41 juplo.wordcount.users.topic: users
48 image: juplo/wordcount--counter:1.0.0
50 juplo.wordcount.counter.bootstrap-server: kafka:9092
51 juplo.wordcount.counter.application-id: counter
52 juplo.wordcount.counter.input-topic: recordings
53 juplo.wordcount.counter.output-topic: countings
60 image: juplo/wordcount--top10:1.0.0
62 juplo.wordcount.top10.bootstrap-server: kafka:9092
63 juplo.wordcount.top10.application-id: top10
64 juplo.wordcount.top10.input-topic: countings
65 juplo.wordcount.top10.output-topic: top10
72 image: juplo/wordcount--query:1.0.2
74 juplo.wordcount.query.bootstrap-server: kafka:9092
75 juplo.wordcount.query.application-id: query
76 juplo.wordcount.query.ranking-input-topic: top10
77 juplo.wordcount.query.users-input-topic: users
84 image: juplo/wordcount--fortune:1.0.0
88 /usr/games/fortune chalkboard
90 | http -v recorder:8080/bart;
96 image: juplo/wordcount--fortune:1.0.0
100 /usr/games/fortune computers
101 | grep -v '^[[:space:]]*--'
102 | http -v recorder:8080/nerd;
108 image: juplo/wordcount--fortune:1.0.0
112 /usr/games/fortune riddles
113 | awk -F':' '/^Q/ { print $$2 }'
114 | http -v recorder:8080/riddler;
120 image: confluentinc/cp-kafka:6.2.0
122 cub kafka-ready -b kafka:9092 1 60 ;
123 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic recordings ;
124 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic users ;
125 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic countings ;
126 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic top10 ;
130 image: confluentinc/cp-kafkacat:6.2.0
131 command: sleep infinity