kafka
Support Apache Kafka single and cluster, work with Zookeeper or KRaft mode
108
To deploy a single-node of Kafka service, you need to first deploy the ZooKeeper service and make sure that the ZooKeeper service is reachable by Kafka service.
Docker compose sample for swarm stack deploy:
version: '3.9'
services:
kafka:
image: lindong4067/kafka:3.9.1
hostname: kafka
deploy:
replicas: 1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
zookeeper:
image: zookeeper:3.9.4
hostname: zookeeper
deploy:
replicas: 1
environment:
ZOO_STANDALONE_ENABLED: "true"
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper:2888:3888;2181
Content type
Image
Digest
sha256:ff96da81e…
Size
322.8 MB
Last updated
7 months ago
docker pull lindong4067/kafka:3.9.1