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"
31 #- "--log.level=DEBUG"
32 - "--api.insecure=true"
33 - "--providers.docker=true"
34 - "--providers.docker.exposedbydefault=false"
35 - "--entrypoints.web.address=:80"
40 - "/var/run/docker.sock:/var/run/docker.sock:ro"
43 image: juplo/wordcount--recorder:1.0.1
45 - "traefik.enable=true"
46 - "traefik.http.routers.recorder.rule=Host(`recorder.localhost`)"
47 - "traefik.http.routers.recorder.entrypoints=web"
49 juplo.wordcount.recorder.bootstrap-server: kafka:9092
54 image: juplo/wordcount--users:1.0.4
56 - "traefik.enable=true"
57 - "traefik.http.routers.users.rule=Host(`users.localhost`)"
58 - "traefik.http.routers.users.entrypoints=web"
60 juplo.wordcount.users.bootstrap-server: kafka:9092
65 image: juplo/wordcount--splitter:1.0.0
67 - "traefik.enable=true"
68 - "traefik.http.routers.splitter.rule=Host(`splitter.localhost`)"
69 - "traefik.http.routers.splitter.entrypoints=web"
71 juplo.wordcount.splitter.bootstrap-server: kafka:9092
76 image: juplo/wordcount--counter:1.1.0
78 - "traefik.enable=true"
79 - "traefik.http.routers.counter.rule=Host(`counter.localhost`)"
80 - "traefik.http.routers.counter.entrypoints=web"
82 juplo.wordcount.counter.bootstrap-server: kafka:9092
87 image: juplo/wordcount--top10:1.0.1
89 - "traefik.enable=true"
90 - "traefik.http.routers.top10.rule=Host(`top10.localhost`)"
91 - "traefik.http.routers.top10.entrypoints=web"
93 juplo.wordcount.top10.bootstrap-server: kafka:9092
98 image: juplo/wordcount--query:1.0.4
100 - "traefik.enable=true"
101 - "traefik.http.routers.query.rule=Host(`query.localhost`)"
102 - "traefik.http.routers.query.entrypoints=web"
104 juplo.wordcount.query.bootstrap-server: kafka:9092
109 image: juplo/wordcount--fortune:1.0.0
113 /usr/games/fortune chalkboard
115 | http -v recorder:8081/bart;
121 image: juplo/wordcount--fortune:1.0.0
125 /usr/games/fortune computers
126 | grep -v '^[[:space:]]*--'
127 | http -v recorder:8081/nerd;
133 image: juplo/wordcount--fortune:1.0.0
137 /usr/games/fortune riddles
138 | awk -F':' '/^Q/ { print $$2 }'
139 | http -v recorder:8081/riddler;
147 cub kafka-ready -b kafka:9092 1 60 ;
148 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic recordings ;
149 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic users ;
150 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic words ;
151 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic countings ;
152 kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic top10 ;
156 image: tchiotludo/akhq:0.18.0
158 - "traefik.enable=true"
159 - "traefik.http.routers.akhq.rule=Host(`akhq.localhost`)"
160 - "traefik.http.routers.akhq.entrypoints=web"
164 AKHQ_CONFIGURATION: |
169 bootstrap.servers: "kafka:9092"