Skip to content

Commit 3f9c661

Browse files
committed
Fix DB container start
1 parent f1bca16 commit 3f9c661

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

db-versioning/flyway-db/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@
8585
<POSTGRES_USER>person-user</POSTGRES_USER>
8686
<POSTGRES_PASSWORD>person-password</POSTGRES_PASSWORD>
8787
</env>
88+
<!-- Same as liquibase-db: avoid matching initdb bootstrap "ready" too early. -->
8889
<wait>
89-
<log>database system is ready to accept connections</log>
90-
<time>20000</time>
90+
<log>listening on IPv4 address "0.0.0.0", port 5432</log>
91+
<time>120000</time>
9192
</wait>
9293
</run>
9394
</image>

db-versioning/liquibase-db/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@
6666
<POSTGRES_USER>person-user</POSTGRES_USER>
6767
<POSTGRES_PASSWORD>person-password</POSTGRES_PASSWORD>
6868
</env>
69+
<!-- Do not wait on "database system is ready..." alone: it appears for the
70+
short-lived initdb bootstrap server, then Liquibase can run during restart. -->
6971
<wait>
70-
<log>database system is ready to accept connections</log>
71-
<time>20000</time>
72+
<log>listening on IPv4 address "0.0.0.0", port 5432</log>
73+
<time>120000</time>
7274
</wait>
7375
</run>
7476
</image>

0 commit comments

Comments
 (0)