-
-
Save sheepkiller/566de4698c9ed990095c to your computer and use it in GitHub Desktop.
Kafka 0.9.0.1 Docker Compose
This file contains hidden or 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 | |
| volumes: | |
| - /home/docker/my/conf/repo/kafka-manager:/opt | |
| environment: | |
| ZK_HOSTS: zookeeper:2181 | |
| APPLICATION_SECRET: 1234 | |
| KM_ARGS: -Djava.net.preferIPv4Stack=true | |
| KM_CONFIGFILE: /opt/application.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment