Skip to content

Commit

Permalink
Add kafka docker-compose for further testing
Browse files Browse the repository at this point in the history
  • Loading branch information
trnubo committed Jan 11, 2024
1 parent 61370c4 commit 5862d73
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
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`.
21 changes: 21 additions & 0 deletions docker-compose.yaml
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"

0 comments on commit 5862d73

Please sign in to comment.