Kafka (KRaft) docker image based on official Amazon production-ready distribution of the Open Java Development Kit (OpenJDK) docker image (amazoncorretto). This image optimized only for KRaft mode. Zookeeper does not supported.
Requirements:
- Docker with docker compose (v1 or v2)
Build command:
docker compose build
Run requirements:
- Docker
Docker compose example is in "docker-compose.override.yml" file. You can run it by:
docker compose up
Kafka should be configured with commands. You can use next commands:
Command | Parameter | Description |
---|---|---|
--custom-set | log.level | Logging level. Can apply all available for Kafka values. "INFO" - default value. Some values: ALL,DEBUG,INFO,WARN,... |
--override | [parameter]=[value] | You can set all available parammeters from Kafka documentation |
Example:
version: "3.8"
services:
kafka:
command:
- "--custom-set log.level=INFO"
- "--override broker.id=1"
...
MIT