services:
zookeeper:
- image: confluentinc/cp-zookeeper:6.0.1
+ image: confluentinc/cp-zookeeper:6.2.0
ports:
- 2181:2181
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka:
- image: confluentinc/cp-kafka:6.0.1
+ image: confluentinc/cp-kafka:6.2.0
ports:
- 9092:9092
environment:
- zookeeper
producer:
- image: confluentinc/cp-kafkacat:6.0.1
+ image: juplo/toolbox
command:
bash -c '
export A=0;
do
export A=$$(($$A + 1));
echo -n $$A;
- echo $$A | kafkacat -b kafka:9093 -t foo -k $$A%7;
+ echo $$A | kafkacat -b kafka:9093 -t test -k $$A%7;
+ sleep 1;
done'
tty: true