From 1f5490065e885046b0fc69b98701d0193f3419a6 Mon Sep 17 00:00:00 2001 From: Artem-Darius Atlas Date: Wed, 28 Jun 2023 12:35:55 +0300 Subject: [PATCH] feat: added zookeeper and kafka containers --- docker-compose.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e69de29..34f8bf4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3' +services: + zookeeper: + image: confluentinc/cp-zookeeper:6.2.0 + container_name: zookeeper + ports: + - "2181:2181" + environment: + - ZOOKEEPER_CLIENT_PORT=2181 + - ZOOKEEPER_TICK_TIME=2000 + + kafka: + image: confluentinc/cp-kafka:6.2.0 + container_name: kafka + ports: + - "9092:9092" + environment: + - KAFKA_BROKER_ID=1 + - KAFKA_LISTENERS=PLAINTEXT://:9092 + - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 + - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 + - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 + depends_on: + - zookeeper