Changeset 3:bab511e0760c

Added docker compose file for kafka
author unexist
date Wed, 10 Feb 2021 16:11:54 +0100
parents df24c08dcc78
children f4313c0d97ca
files src/main/docker/docker-compose.yml
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/docker/docker-compose.yml	Wed Feb 10 16:11:54 2021 +0100
@@ -0,0 +1,21 @@
+version: '3.6'
+
+services:
+  zookeeper:
+    image: zookeeper:latest
+    ports:
+      - "2181:2181"
+    environment:
+      LOG_DIR: /tmp/logs
+  kafka:
+    image: bitnami/kafka:latest
+    depends_on:
+      - zookeeper
+    ports:
+      - "9092:9092"
+    environment:
+      LOG_DIR: "/tmp/logs"
+      ALLOW_PLAINTEXT_LISTENER: "yes"
+      KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
+      KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
+      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
\ No newline at end of file