From 9c5dfab949dc59926dedfd64e8e36c7e48264245 Mon Sep 17 00:00:00 2001 From: Michael Irwin Date: Tue, 7 Jan 2025 17:20:30 -0500 Subject: [PATCH] Allow kafka container to be started again without errors Resolves #15 --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 95ede57..e7d7f6e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -75,7 +75,7 @@ services: # Required for a single node cluster KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 post_start: - - command: /opt/kafka/bin/kafka-topics.sh --create --topic products --partitions 1 --replication-factor 1 --bootstrap-server kafka:9093 + - command: /opt/kafka/bin/kafka-topics.sh --create --if-not-exists --topic products --partitions 1 --replication-factor 1 --bootstrap-server kafka:9093 kafka-ui: image: ghcr.io/kafbat/kafka-ui:01aa8ab36387c5f1d66d098e71488bfb0eb5f39c