docker-compose.yml添加
redis:
image: redis:alpine
kafka:
image: "bitnami/kafka:3.1.1"
depends_on:
- zookeeper
zookeeper:
image: "bitnami/zookeeper:3.5.10"
docker-compose.override.yml添加文章来源:https://www.toymoban.com/news/detail-743664.html
redis:
ports:
- "6379"
kafka:
links:
- zookeeper
environment:
- 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=yes
ports:
- "9380"
depends_on:
- zookeeper
zookeeper:
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
ports:
- "2181"
添加了redis和kafka和zookeeper文章来源地址https://www.toymoban.com/news/detail-743664.html
到了这里,关于asp.net docker-compose添加kafka和redis和zookeeper的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!