Apache Kafka - Distributed event streaming platform
Everything you need to deploy Kafka with BlastDock
One command deployment
Production-ready security
Customizable settings
Ready to scale up
blastdock init
Initialize new project
blastdock deploy
Deploy the application
blastdock status
Check deployment status
blastdock logs
View application logs
Get Kafka up and running in minutes with our one-click installation.
First, install BlastDock using pip (recommended):
pip install blastdock
Then deploy Kafka with:
blastdock init kafka
Interactive mode:
blastdock init kafka -i
blastdock templates
List available templates
blastdock status project
Check deployment status
blastdock logs project
View application logs
blastdock stop project
Stop deployment
Customize your Kafka installation with these configuration options.
Kafka broker port
ZooKeeper port
Complete Docker Compose configuration for Kafka deployment.
version: '3.8'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: {{ project_name }}_zookeeper
restart: unless-stopped
ports:
- "2181"
environment:
0: ZOOKEEPER_CLIENT_PORT=2181
1: ZOOKEEPER_TICK_TIME=2000
volumes:
- /var/lib/zookeeper/data
- /var/lib/zookeeper/log
networks:
- kafka_network
kafka:
image: confluentinc/cp-kafka:latest
container_name: {{ project_name }}_kafka
restart: unless-stopped
depends_on:
- zookeeper
ports:
- "9092"
environment:
0: KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper: 2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT: //kafka:29092,PLAINTEXT_HOST://localhost:{{ kafka_port }}
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT: PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
1: KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT
2: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
volumes:
- /var/lib/kafka/data
networks:
- kafka_network
volumes:
zookeeper_data:
driver: local
zookeeper_log:
driver: local
kafka_data:
driver: local
networks:
kafka_network:
driver: bridge