Skip to content

Commit

Permalink
infra: make prism-agent wait for db (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
patlo-iog authored Dec 8, 2022
1 parent 258c6c0 commit d7618eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions infrastructure/shared/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
interval: 10s
timeout: 5s
retries: 5

pgadmin:
image: dpage/pgadmin4
environment:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d7618eb

Please sign in to comment.