Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bär committed Mar 3, 2022
1 parent af0efa7 commit 12a849e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
Binary file added Kafdrop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# kafka-zookeeper-kafdrop
Kafka, Zookeeper and Kafdrop with a simple docker-compose up
# Kafka Zookeeper Kafdrop
Kafka, Zookeeper and Kafdrop with a simple `docker-compose up`.

Single node Kafka, Zookeeper and Kafdrop - ideal for quickly bootstrapping your development machine.

## Usage
Start the services with `docker-compose up`.

Kafka ist available under localhost:9092.

If you are developing with Spring Boot, add this to your application.yml:
```yaml
spring:
kafka:
bootstrap-servers: localhost:9092
```
Kafrop is available under [localhost:9000](http://localhost:9000)
![Kafdrop](Kafdrop.png)
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3.8'
services:
kafka:
image: confluentinc/cp-kafka
depends_on:
- zookeeper
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9093,EXTERNAL://localhost:9092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
ports:
- "9092:9092"

zookeeper:
image: confluentinc/cp-zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=2181
- ZOOKEEPER_TICK_TIME=2000

kafdrop:
image: obsidiandynamics/kafdrop
depends_on:
- kafka
environment:
- KAFKA_BROKERCONNECT=kafka:9093
ports:
- "9000:9000"

0 comments on commit 12a849e

Please sign in to comment.