Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge two Kafka services together to streamline Compose file #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
services:

################## DEMO WEB CLIENT ##################
demo-client:
image: node:lts-slim
working_dir: /usr/local/app
Expand Down Expand Up @@ -52,7 +54,7 @@ services:

############## KAFKA AND VISUALIZATION ##############
kafka:
image: apache/kafka-native:3.9.0
image: apache/kafka:3.9.0
ports:
- 9092:9092
environment:
Expand All @@ -72,12 +74,8 @@ services:

# Required for a single node cluster
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

kafka-topic-creator:
image: apache/kafka:3.9.0
command: /opt/kafka/bin/kafka-topics.sh --create --topic products --partitions 1 --replication-factor 1 --bootstrap-server kafka:9093
depends_on:
- kafka
post_start:
- command: /opt/kafka/bin/kafka-topics.sh --create --topic products --partitions 1 --replication-factor 1 --bootstrap-server kafka:9093

kafka-ui:
image: ghcr.io/kafbat/kafka-ui:01aa8ab36387c5f1d66d098e71488bfb0eb5f39c
Expand Down
Loading