-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability to start zookeeper and kafka using docker-compose
- easing testability (especially for admin subproject, which requires both a running zookeeper and a running kafka instance). Embedded subproject just relies on a running zookeeper. - necessary to run tests on travis
- Loading branch information
Dr. Christian Betz
committed
Sep 13, 2017
1 parent
1ed2187
commit 87b1966
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "2" | ||
services: | ||
zookeeper: | ||
image: wurstmeister/zookeeper | ||
ports: | ||
- "2181:2181" | ||
kafka: | ||
image: wurstmeister/kafka | ||
ports: | ||
- "9092:9092" | ||
environment: | ||
- "KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181" | ||
- "KAFKA_ADVERTISED_PORT=9092" | ||
- "KAFKA_ADVERTISED_HOST_NAME=127.0.0.1" |