Sign inSign up

newnius/kafka

By newnius

•Updated over 7 years ago

kafka

Image
0

557

newnius/kafka repository overview

⁠deploy kafka with docker

⁠docker swarm

docker service create \
	--name kafka_1 \
	--hostname=kafka_1 \
	--network swarm-net \
	--replicas 1 \
	--detach=true \
	--env BROKER_ID=1 \
	--env ZOOKEEPER_CONNECT=zookeeper_node1:2181,zookeeper_node2:2181,zookeeper_node3:2181 \
	--endpoint-mode dnsrr \
	newnius/kafka:2.1.0

⁠Configuration

⁠By environment variable

Currently, properties below are supported.

envfileproperty
BROKER_IDserver.propertiesbroker.id
ZOOKEEPER_CONNECTserver.propertieszookeeper.connect
⁠By configuration file
docker service create \
	--name kafka \
	--hostname=kafka \
	--network swarm-net \
	--detach=true \
	--replicas 1 \
	--endpoint-mode dnsrr \
	--mount type=bind,src=/data/kafka/,dst=/config/kafka/,readonly \
	newnius/kafka:2.1.0

Tag summary

Content type

Image

Digest

Size

115.3 MB

Last updated

over 7 years ago

docker pull newnius/kafka:2.1.0