Public | Automated Build

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

docker-kafka

Run Apache Kafka cluster in docker containers and support multi-node cluster.

/kafka is exposed as the data directory, to be linked to a host directory.

Environment variables starting with KAFKA_ will be converted into proper Kafka configuration options, e.g. KAFKA_MESSAGE_MAX_BYTES will be converted to message.max.bytes.

The following environment variables are good to know.

  • KAFKA_ADVERTISED_HOST_NAME This is required to be the IP address of the docker host. For example, on OSX, if using docker-machine with the default driver, it's the address 192.168.99.100.

  • KAFKA_ADVERTISED_PORT Default to be 9092

  • KAFKA_BROKER_ID If unspecified, 0.

  • KAFKA_LOG_DIRS If unspecified, default will be /kafka/kafka-logs-$KAFKA_BROKER_ID

  • KAFKA_ZOOKEEPER_CONNECT Comma-delimited zookeeper addresses. If unspecified, default will be zookeeper, i.e. the name for the linked zookeeper container (e.g. using docker-compose and named the linked zookeeper zookeeper).

  • KAFKA_HEAP_OPTS

Docker Pull Command
Owner
huahaiy
Source Repository

Comments (0)