Skip to content

Commit 8b19217

Browse files
committed
Add dependencies to compose.
1 parent b50da11 commit 8b19217

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

compose/docker-compose.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
services:
32

43
postgres:
@@ -23,7 +22,8 @@ services:
2322
ports:
2423
- "${MB3_API_PORT}:${MB3_SERVER_PORT}"
2524
depends_on:
26-
- postgres
25+
postgres:
26+
condition: service_healthy
2727
environment:
2828
- DB_TYPE
2929
- DB_PORT
@@ -40,7 +40,8 @@ services:
4040
ports:
4141
- "${SIMILARITY_SERVICE_COSINE_PORT}:8080"
4242
depends_on:
43-
- postgres
43+
mb3tool:
44+
condition: service_completed_successfully
4445
environment:
4546
- DB_PORT
4647
- DB_USER
@@ -63,6 +64,9 @@ services:
6364
build:
6465
context: ..
6566
dockerfile: Dockerfile-dbtool
67+
depends_on:
68+
postgres:
69+
condition: service_healthy
6670
environment:
6771
- DB_TYPE
6872
- DB_PORT

0 commit comments

Comments
 (0)