4 image: confluentinc/cp-zookeeper:7.0.2
6 ZOOKEEPER_CLIENT_PORT: 2181
11 image: confluentinc/cp-kafka:7.0.2
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 kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic test
32 kafka-topics --bootstrap-server kafka:9092 --create --topic test --partitions 2
37 command: sleep infinity
40 image: juplo/rest-producer:1.0-SNAPSHOT
44 producer.bootstrap-server: kafka:9092
45 producer.client-id: producer