diff options
Diffstat (limited to 'src/main/resources/docker-compose/docker-compose-single-broker.yml')
-rw-r--r-- | src/main/resources/docker-compose/docker-compose-single-broker.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/resources/docker-compose/docker-compose-single-broker.yml b/src/main/resources/docker-compose/docker-compose-single-broker.yml new file mode 100644 index 0000000..4d8e9f5 --- /dev/null +++ b/src/main/resources/docker-compose/docker-compose-single-broker.yml @@ -0,0 +1,16 @@ +version: '2' +services: + zookeeper: + image: wurstmeister/zookeeper + ports: + - "2181:2181" + kafka: + build: . + ports: + - "9092:9092" + environment: + KAFKA_ADVERTISED_HOST_NAME: 192.168.99.100 + KAFKA_CREATE_TOPICS: "test:1:1" + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + volumes: + - /var/run/docker.sock:/var/run/docker.sock |