Last active
March 22, 2016 00:27
-
-
Save chris-zen/19baa29a90625edef4db to your computer and use it in GitHub Desktop.
Kafka 0.9.0.1 Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker compose to have Zookeeper, Kafka, and Kafka Manager running for development. | |
zookeeper: | |
image: confluent/zookeeper | |
ports: | |
- "2181:2181" | |
kafka: | |
# My PR to update to 0.9.0.1 has been already merged, so very soon it will be possible | |
# to replace my kafka fork by the original one **wurstmeister/kafka:0.9.0.1** | |
# More info at https://github.com/wurstmeister | |
image: chriszen/kafka:0.9.0.1 | |
ports: | |
- "9092:9092" | |
links: | |
- zookeeper:zk | |
environment: | |
- KAFKA_ADVERTISED_HOST_NAME | |
- KAFKA_ADVERTISED_PORT=9092 | |
- KAFKA_DELETE_TOPIC_ENABLE=true | |
- KAFKA_LOG_RETENTION_HOURS=1 | |
- KAFKA_MESSAGE_MAX_BYTES=10000000 | |
- KAFKA_REPLICA_FETCH_MAX_BYTES=10000000 | |
- KAFKA_GROUP_MAX_SESSION_TIMEOUT_MS=60000 | |
- KAFKA_NUM_PARTITIONS=2 | |
- KAFKA_DELETE_RETENTION_MS=1000 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
kafka-manager: | |
image: sheepkiller/kafka-manager:unstable | |
ports: | |
- "9000:9000" | |
links: | |
- zookeeper | |
- kafka | |
environment: | |
ZK_HOSTS: zookeeper:2181 | |
APPLICATION_SECRET: 1234 |
I updated the kafka-manager image from latest to unstable which have experimental support for Kafka 0.9.0.x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After
docker-compose start
, thestart-kafka.sh
exits/dies right afterwards:I guess that is expected behavior... anyway, the fix by wurstmeister is in and changing to
image: wurstmeister/kafka:latest
works ok :)