diff --git a/localenv/cloud-nine-wallet/docker-compose.yml b/localenv/cloud-nine-wallet/docker-compose.yml index 99239ccecf..b0a75933d8 100644 --- a/localenv/cloud-nine-wallet/docker-compose.yml +++ b/localenv/cloud-nine-wallet/docker-compose.yml @@ -29,7 +29,8 @@ services: - ../cloud-nine-wallet/seed.yml:/workspace/seed.yml - ../cloud-nine-wallet/private-key.pem:/workspace/private-key.pem depends_on: - - cloud-nine-backend + cloud-nine-backend: + condition: service_healthy cloud-nine-backend: hostname: cloud-nine-wallet-backend image: rafiki-backend @@ -78,6 +79,13 @@ services: depends_on: - shared-database - shared-redis + healthcheck: + test: ["CMD", "wget", "--header=apollo-require-preflight: true", "http://localhost:3001/graphql?query=%7B__typename%7D", "-O", "/dev/null"] + start_period: 60s + start_interval: 5s + interval: 30s + retries: 1 + timeout: 3s cloud-nine-auth: hostname: cloud-nine-wallet-auth image: rafiki-auth diff --git a/localenv/happy-life-bank/docker-compose.yml b/localenv/happy-life-bank/docker-compose.yml index 5a3c37daa4..e72e1654bd 100644 --- a/localenv/happy-life-bank/docker-compose.yml +++ b/localenv/happy-life-bank/docker-compose.yml @@ -25,8 +25,10 @@ services: - ../happy-life-bank/seed.yml:/workspace/seed.yml - ../happy-life-bank/private-key.pem:/workspace/private-key.pem depends_on: - - cloud-nine-mock-ase - - happy-life-backend + happy-life-backend: + condition: service_healthy + cloud-nine-mock-ase: + condition: service_started happy-life-backend: hostname: happy-life-bank-backend image: rafiki-backend @@ -69,6 +71,13 @@ services: KEY_ID: 53f2d913-e98a-40b9-b270-372d0547f23d depends_on: - cloud-nine-backend + healthcheck: + test: ["CMD", "wget", "--header=apollo-require-preflight: true", "http://localhost:3001/graphql?query=%7B__typename%7D", "-O", "/dev/null"] + start_period: 60s + start_interval: 5s + interval: 30s + retries: 1 + timeout: 3s happy-life-auth: hostname: happy-life-bank-auth image: rafiki-auth