Skip to content

Commit

Permalink
chore: adds kafka configs
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhaev26 committed Jul 12, 2024
1 parent d29d634 commit 29e69ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 29e69ac

Please sign in to comment.