From a2ba3b2fd2a85300366af8313a0de6535a77ea65 Mon Sep 17 00:00:00 2001 From: Brian Mesick Date: Tue, 13 Feb 2024 10:41:48 -0500 Subject: [PATCH] fix: Make kafka images restart if the crash --- tutorevent_bus_redis/patches/local-docker-compose-services | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutorevent_bus_redis/patches/local-docker-compose-services b/tutorevent_bus_redis/patches/local-docker-compose-services index e8ec9ed..e7d327d 100644 --- a/tutorevent_bus_redis/patches/local-docker-compose-services +++ b/tutorevent_bus_redis/patches/local-docker-compose-services @@ -2,6 +2,7 @@ # needed by Kafka to keep track of nodes, topics, and messages. zookeeper: image: confluentinc/cp-zookeeper:6.2.1 + restart: unless-stopped ports: - "2181:2181" environment: @@ -13,6 +14,7 @@ kafka: image: confluentinc/cp-server:6.2.1 depends_on: - zookeeper + restart: unless-stopped ports: - "9092:9092" - "9101:9101" @@ -41,6 +43,7 @@ schema-registry: image: confluentinc/cp-schema-registry:6.2.1 depends_on: - kafka + restart: unless-stopped ports: - "18081:18081" environment: @@ -56,6 +59,7 @@ kafka-control-center: depends_on: - kafka - schema-registry + restart: unless-stopped ports: - "9021:9021" environment: