From 21853c0f58351feda047de3bb613e7ef4213d1ac Mon Sep 17 00:00:00 2001 From: blazSmehov Date: Fri, 12 Dec 2025 11:46:59 +0100 Subject: [PATCH] fix: await kafka-init exit --- build/docker-compose.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/build/docker-compose.yaml b/build/docker-compose.yaml index 78d1f39..50f10bc 100644 --- a/build/docker-compose.yaml +++ b/build/docker-compose.yaml @@ -63,7 +63,8 @@ services: environment: - KAFKA_URL=kafka:29092 depends_on: - - kafka-init + kafka-init: + condition: service_completed_successfully restart: always presense-server: @@ -78,8 +79,10 @@ services: ports: - "127.0.0.1:1902:1902" depends_on: - - kafka-init - - valkey + valkey: + condition: service_started + kafka-init: + condition: service_completed_successfully restart: always presense-bridge: @@ -94,7 +97,8 @@ services: - MQTT_USERNAME=user - MQTT_PASSWORD=pass depends_on: - - kafka-init + kafka-init: + condition: service_completed_successfully restart: always presense-location: @@ -106,7 +110,8 @@ services: environment: - KAFKA_URL=kafka:29092 depends_on: - - kafka-init + kafka-init: + condition: service_completed_successfully restart: always