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--counter:1.0.1
67 - "traefik.enable=true"
68 - "traefik.http.routers.counter.rule=Host(`counter.localhost`)"
69 - "traefik.http.routers.counter.entrypoints=web"
71 juplo.wordcount.counter.bootstrap-server: kafka:9092
76 image: juplo/wordcount--top10:1.0.1
78 - "traefik.enable=true"
79 - "traefik.http.routers.top10.rule=Host(`top10.localhost`)"
80 - "traefik.http.routers.top10.entrypoints=web"
82 juplo.wordcount.top10.bootstrap-server: kafka:9092
87 image: juplo/wordcount--query:1.0.4
89 - "traefik.enable=true"
90 - "traefik.http.routers.query.rule=Host(`query.localhost`)"
91 - "traefik.http.routers.query.entrypoints=web"
93 juplo.wordcount.query.bootstrap-server: kafka:9092
98 image: juplo/wordcount--fortune:1.0.0
102 /usr/games/fortune chalkboard
104 | http -v recorder:8081/bart;
110 image: juplo/wordcount--fortune:1.0.0
114 /usr/games/fortune computers
115 | grep -v '^[[:space:]]*--'
116 | http -v recorder:8081/nerd;
122 image: juplo/wordcount--fortune:1.0.0
126 /usr/games/fortune riddles
127 | awk -F':' '/^Q/ { print $$2 }'
128 | http -v recorder:8081/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 ;
144 image: tchiotludo/akhq:0.18.0
146 - "traefik.enable=true"
147 - "traefik.http.routers.akhq.rule=Host(`akhq.localhost`)"
148 - "traefik.http.routers.akhq.entrypoints=web"
152 AKHQ_CONFIGURATION: |
157 bootstrap.servers: "kafka:9092"