-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kafka docker-compose for further testing
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Docker CMAK | ||
|
||
Docker image of [yahoo/CMAK](https://github.com/yahoo/CMAK). | ||
|
||
## Testing and Development | ||
|
||
Some tests are provided in [tests/](tests/). | ||
|
||
A `docker-compose.yaml` is provided with Zookeeper and Kafka. Once running a cluster can be added by setting the "Cluster Zookeeper Hosts" to `zk:2181`. |
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,21 @@ | ||
version: '3.6' | ||
|
||
services: | ||
zk: | ||
image: zookeeper:latest | ||
environment: | ||
ZOO_SERVERS: server.1=0.0.0.0:2888:3888;2181 | ||
kafka: | ||
image: wurstmeister/kafka:2.12-2.1.1 | ||
environment: | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
KAFKA_ZOOKEEPER_CONNECT: "zk:2181" | ||
KAFKA_CREATE_TOPICS: "test:1:1" | ||
ports: | ||
- "9092" | ||
cmak: | ||
build: . | ||
ports: | ||
- "9000" | ||
environment: | ||
ZK_HOSTS: "zk:2181" |