From 29e69ac7f4e8c52631f0825ceb9fb0ccad35bdfe Mon Sep 17 00:00:00 2001 From: Soubhik Kumar Gon Date: Fri, 12 Jul 2024 16:13:35 +0530 Subject: [PATCH] chore: adds kafka configs --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1c10753 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.8' + +services: + zookeeper: + image: zookeeper:latest + ports: + - "2181:2181" + + kafka: + image: confluentinc/cp-kafka:latest + ports: + - "9092:9092" + environment: + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.1.6:9092 + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + depends_on: + - zookeeper \ No newline at end of file