Docker container for Apache Kafka
Docker Compose >= 1.9.0
On local setup:
Note: If you want to access the Kafka Docker container remotely, you need to set DOCKER_HOST_IP environment variable to the publicly available IP address of the Docker Host.
docker-compose up -dOn Rancher:
- NFS server and Rancher NFS service need to be configured in the cluster. The NFS volumes
zookeeper-dataandkafka-dataneed to be created via the Rancher WebUI. - Add host label
kafka=trueto any of your hosts. - If you want Kafka to be accessible from outside the Rancher cluster, you to set the
KAFKA_ADVERTISED_HOST_NAMEenvironment variable to the hostname or IP of the labeled host. - Create new Kafka stack
kafkavia Rancher WebUI and deploydocker-compose.rancher.yml.
- Kafka broker is running on port
9092 - Zookeeper is running on port
2181