From b15117f32e66ed09f7c30479cadf7c477c2c0968 Mon Sep 17 00:00:00 2001 From: devleejb Date: Tue, 26 Nov 2024 16:49:38 +0900 Subject: [PATCH] Add dependant condition --- backend/docker/docker-compose-full.yml | 3 ++- backend/docker/docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/docker/docker-compose-full.yml b/backend/docker/docker-compose-full.yml index 638a9886..c13887d8 100644 --- a/backend/docker/docker-compose-full.yml +++ b/backend/docker/docker-compose-full.yml @@ -92,7 +92,8 @@ services: init_minio: image: minio/mc depends_on: - - minio + minio: + condition: service_healthy entrypoint: > /bin/sh -c " mc alias set codepair http://minio:9000 minioadmin minioadmin --api S3v4; diff --git a/backend/docker/docker-compose.yml b/backend/docker/docker-compose.yml index 73c59357..84af90d8 100644 --- a/backend/docker/docker-compose.yml +++ b/backend/docker/docker-compose.yml @@ -53,7 +53,8 @@ services: init_minio: image: minio/mc depends_on: - - minio + minio: + condition: service_healthy entrypoint: > /bin/sh -c " mc alias set codepair http://minio:9000 minioadmin minioadmin --api S3v4;