Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
acharb committed Nov 21, 2023
1 parent 472fc1b commit 6f57dbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ services:
- postgres1
entrypoint: ["/bin/bash", "-c"]
command: >
while !</dev/tcp/postgres1/5432; do sleep 1; done; db migrate up;
while !</dev/tcp/postgres1/5432; do sleep 1; done; /app/recoverysigner db
migrate up
environment:
DB_URL: "postgresql://postgres:pg_password@postgres1:5432/pg_database1?sslmode=disable"

Expand All @@ -32,7 +33,8 @@ services:
- postgres2
entrypoint: ["/bin/bash", "-c"]
command: >
while !</dev/tcp/postgres1/5432; do sleep 1; done; db migrate up;
while !</dev/tcp/postgres1/5432; do sleep 1; done; /app/recoverysigner db
migrate up
environment:
DB_URL: "postgresql://postgres:pg_password@postgres2:5432/pg_database2?sslmode=disable"

Expand Down

0 comments on commit 6f57dbf

Please sign in to comment.