{"id":16542045,"url":"https://github.com/itzg/docker-kafka-multiarch","last_synced_at":"2026-05-09T13:47:39.066Z","repository":{"id":41978448,"uuid":"471188122","full_name":"itzg/docker-kafka-multiarch","owner":"itzg","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-09T15:17:45.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T10:16:14.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itzg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-18T00:42:22.000Z","updated_at":"2022-06-04T12:14:57.000Z","dependencies_parsed_at":"2022-08-12T01:20:13.589Z","dependency_job_id":null,"html_url":"https://github.com/itzg/docker-kafka-multiarch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdocker-kafka-multiarch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdocker-kafka-multiarch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdocker-kafka-multiarch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Fdocker-kafka-multiarch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzg","download_url":"https://codeload.github.com/itzg/docker-kafka-multiarch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241794136,"owners_count":20021192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:56:31.880Z","updated_at":"2026-05-09T13:47:38.986Z","avatar_url":"https://github.com/itzg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"These images are intended to be configuration-compatible with the [confluentinc/cp-zookeeper](https://hub.docker.com/r/confluentinc/cp-zookeeper) and [confluentinc/cp-kafka](https://hub.docker.com/r/confluentinc/cp-kafka) images; however, unlike those images, these are built as multi-architecture images for both amd64 and arm64 in order to be compatible with Mac OS on M1 Apple Silicon and the usual x86 hardware.\n\n## Zookeeper\n\n[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/itzg/zookeeper?label=Image:%20itzg/zookeeper)](https://hub.docker.com/r/itzg/zookeeper)\n\nThis image is primarily intended to support [itzg/kafka](https://hub.docker.com/r/itzg/kafka) while [KRaft support is being finalized](https://blogs.apache.org/kafka/entry/what-s-new-in-apache6).\n\n### Environment variables\n\nAny of [the configuration parameters](https://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_configuration) can be set by translating the property name from camelCase to SCREAMING_SNAKE_CASE and prefixing with \"ZOOKEEPER_\", such as `ZOOKEEPER_CLIENT_PORT`.\n\nThe following variables are pre-declared:\n\n- `ZOOKEEPER_CLIENT_PORT` = 2181\n- `ZOOKEEPER_DATA_DIR` = /var/lib/zookeeper/data\n- `ZOOKEEPER_TICK_TIME` = 1000\n- `SERVER_JVMFLAGS` = -Xmx256m\n\n### Ports\n\n- `2181`\n\n### Volumes\n\n- `/var/lib/zookeeper/data`\n\n### Healthcheck\n\nThe image comes with a health check script, `/init/healthcheck`, that is pre-configured for non-Kubernetes environments.\n\n## Kafka\n\n[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/itzg/kafka?label=Image:%20itzg/kafka)](https://hub.docker.com/r/itzg/kafka)\n\n### Environment variables\n\nAny of [the broker configuration properties](https://kafka.apache.org/documentation/#brokerconfigs) can be set by translating the property name from dot-delimited to SCREAMING_SNAKE_CASE with a prefix of `KAFKA_`.\n\nThe following variables are pre-declared:\n\n- `KAFKA_ZOOKEEPER_CONNECT` = zk:2181\n- `KAFKA_BROKER_ID` = 0\n- `KAFKA_LOG_DIRS` = /var/lib/kafka/data\n- `KAFKA_ADVERTISED_LISTENERS` = PLAINTEXT://localhost:9092,BROKER://${HOSTNAME}:9093\n- `KAFKA_LISTENERS` = PLAINTEXT://0.0.0.0:9092,BROKER://0.0.0.0:9093\n- `KAFKA_LISTENER_SECURITY_PROTOCOL_MAP` = BROKER:PLAINTEXT,PLAINTEXT:PLAINTEXT\n- `KAFKA_INTER_BROKER_LISTENER_NAME` = BROKER\n- `KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR` = 1\n- `KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR` = 1\n- `BROKER_HEAP_OPTS` = -Xmx1G\n\n\u003e NOTE: variables referenced in the Apache wrapper scripts are not converted into broker properties.\n\n### Ports\n\n- `9092`\n\n### Volumes\n\n- `/var/lib/kafka/data`\n\n### Healthcheck\n\nThe image comes with a health check script, `/init/healthcheck`, that is pre-configured for non-Kubernetes environments.\n\n## Example composition\n\n```yaml\nversion: \"3\"\n\nservices:\n  zk:\n    image: itzg/zookeeper\n    volumes:\n      - zk:/var/lib/zookeeper/data\n  kafka-0:\n    depends_on:\n      - zk\n    image: itzg/kafka\n    environment:\n      KAFKA_BROKER_ID: \"0\"\n      KAFKA_ADVERTISED_LISTENERS: \"PLAINTEXT://localhost:9092,BROKER://kafka-0:9093\"\n    ports:\n      - \"9092:9092\"\n    volumes:\n      - kafka-0:/var/lib/kafka/data\n\nvolumes:\n  zk: {}\n  kafka-0: {}\n```\n\n## Example usage with [testcontainers](https://www.testcontainers.org/modules/kafka/)\n\n```java\n@Testcontainers\npublic class TestSomethingWithKafka {\n\n    private static final Network network = Network.newNetwork();\n\n    @Container\n    private static final GenericContainer zkContainer = new GenericContainer(\"itzg/zookeeper\")\n        .withNetwork(network)\n        .withNetworkAliases(\"zk\");\n\n    @Container\n    private static final KafkaContainer kafkaContainer = new KafkaContainer(\n        DockerImageName.parse(\"itzg/kafka:3.1.0\")\n            .asCompatibleSubstituteFor(\"confluentinc/cp-kafka\")\n    )\n        .dependsOn(zkContainer)\n        .withNetwork(network)\n        .withExternalZookeeper(\"zk:2181\");\n\n    // ...setup kafka client with \"bootstrap.servers\" set to kafkaContainer.getBootstrapServers()\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fdocker-kafka-multiarch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzg%2Fdocker-kafka-multiarch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Fdocker-kafka-multiarch/lists"}