Sign inSign up

foxcapades/apache-kafka

By foxcapades

•Updated over 3 years ago

Apache Kafka

Image
0

210

foxcapades/apache-kafka repository overview

⁠Apache Kafka

A simple Docker image for Apache Kafka.

On GitHub⁠

⁠Usage

docker run -p 9092:9092 foxcapades/apache-kafka:3.4.0

⁠Configuration

⁠Environment
⁠Container Config

The following options are provided as part of the Docker container and are not part of Apache Kafka.

OptionTypeDefault
KAFKA_SERVER_PROPERTIES_FILEstring/opt/kafka/server.properties
KAFKA_CLUSTER_IDstring<random uuid>
⁠server.properties

All Kafka configuration options listed in the official documentation⁠ may be configured using environment variables. The environment variable to set for a specific option may be looked up in the server.properties.sh⁠ file, or by performing the following mapping steps:

  1. Convert the property name to uppercase
  2. Replace all period (.) characters with underscore (_) characters
  3. Prepend the prefix KAFKA_

Property to Environment Mapping Snippet

fun mapPropertyNameToEnvironmentKey(property: String) =
  "KAFKA_" + property.uppercase().replace('.', '_')
⁠Defaults

The following defaults are set if no environment variables are specified.

PropertyDefault
advertised.listenersPLAINTEXT://localhost:9092
controller.listener.namesCONTROLLER
controller.quorum.voters1@localhost:9093
inter.broker.listener.namePLAINTEXT
listenersPLAINTEXT://:9092,CONTROLLER://:9093
log.dirs/tmp/kafka
node.id1
offsets.topic.replication.factor1
process.rolesbroker,controller
transaction.state.log.min.isr1
transaction.state.log.replication.factor1

Tag summary

Content type

Image

Digest

sha256:6c4e598b3…

Size

298.2 MB

Last updated

over 3 years ago

docker pull foxcapades/apache-kafka