From d7618eb0a7801072f51c2c71a96f1c22d18f24a1 Mon Sep 17 00:00:00 2001 From: patlo-iog <108713642+patlo-iog@users.noreply.github.com> Date: Thu, 8 Dec 2022 10:49:46 +0700 Subject: [PATCH] infra: make prism-agent wait for db (#218) --- infrastructure/shared/docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infrastructure/shared/docker-compose.yml b/infrastructure/shared/docker-compose.yml index 499f50eba8..c7b35ea0bb 100644 --- a/infrastructure/shared/docker-compose.yml +++ b/infrastructure/shared/docker-compose.yml @@ -21,7 +21,7 @@ services: interval: 10s timeout: 5s retries: 5 - + pgadmin: image: dpage/pgadmin4 environment: @@ -73,7 +73,8 @@ services: CONNECT_DB_PASSWORD: postgres DIDCOMM_SERVICE_URL: http://host.docker.internal:${PORT}/didcomm/ depends_on: - - db + db: + condition: service_healthy healthcheck: test: [ "CMD", "curl", "-f", "http://prism-agent:8080/connections" ] interval: 30s