docker-compose.yml添加
redis:image: redis:alpinekafka:image: "bitnami/kafka:3.1.1"depends_on:- zookeeperzookeeper:image: "bitnami/zookeeper:3.5.10"
docker-compose.override.yml添加
redis:ports:- "6379"kafka:links: - zookeeperenvironment:- KAFKA_BROKER_ID=1- KAFKA_LISTENERS=PLAINTEXT://:9380- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9380- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181- ALLOW_PLAINTEXT_LISTENER=yesports:- "9380"depends_on:- zookeeperzookeeper:environment:- ALLOW_ANONYMOUS_LOGIN=yesports:- "2181"
添加了redis和kafka和zookeeper