From 149936ce6d749e0338e85f02ea6ce5e35f5fc5dd Mon Sep 17 00:00:00 2001 From: Noel Garcia Date: Wed, 5 Jul 2023 17:38:29 +0100 Subject: [PATCH] Update workers on docker-compose.yml on cold start of docker compose workers crashes because ipfs is not ready yet. With this the workers wait til the ipfs sevice is READY --- docker-compose.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 95a56ef000..d4469cbb0d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -79,8 +79,10 @@ services: context: . dockerfile: ./worker-service/Dockerfile depends_on: - - ipfs-node - - auth-service + ipfs-node: + condition: service_healthy + auth-service: + condition: service_started environment: - GUARDIAN_ENV=${GUARDIAN_ENV} - SERVICE_CHANNEL:"worker.1" @@ -97,8 +99,10 @@ services: context: . dockerfile: ./worker-service/Dockerfile depends_on: - - ipfs-node - - auth-service + ipfs-node: + condition: service_healthy + auth-service: + condition: service_started environment: - GUARDIAN_ENV=${GUARDIAN_ENV} - SERVICE_CHANNEL="worker.2"