Skip to content

mo-zza/kafka_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Setup

Table of Contents

Description

This is a simple Kafka setup for small size projects. It is based on the confluentinc/cp-kafka image.

Structure

graph RL
K1[Kafka 1] --> KUI[Kafka UI]
K2[Kafka 2] --> KUI
K3[Kafka 3] --> KUI
K1 --> KC[Kafka Connect]
K2 --> KC
K3 --> KC
Loading

Environment Variables

Key Description Example
PROFILE Kafka-ui cluster name local
KAFKA_1_PORT Kafka port 9092
KAFKA_2_PORT Kafka port 9093
KAFKA_3_PORT Kafka port 9094
KAFKA_CONNECT_PORT Kafka connect port 8083
KAFKA_DIR Kafka data dir source kafka_data
KAFKA_UI_PORT Kafka UI port 9000
DOCKER_HOST_IP Kafka external IP (Optional) 127.0.0.1

Usage

Setup Environment Variables

$ cp .env.example .env

👉 Edit the .env file

$ vim .env
# or
$ vi .env
``
KAFKA_1_PORT=9092
KAFKA_2_PORT=9093
KAFKA_3_PORT=9094
KAFKA_CONNECT_PORT=8083
KAFKA_DIR=kafka_data
KAFKA_UI_PORT=9000
DOCKER_HOST_IP=127.0.0.1
``

Start

$ docker-compose up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published