-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Bär
committed
Mar 3, 2022
1 parent
af0efa7
commit 12a849e
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |