Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
acharb committed Nov 21, 2023
1 parent 3d9bbc1 commit 164ac36
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ services:
image: stellar/recoverysigner
depends_on:
- postgres1
restart: on-failure
command: ["db", "migrate", "up"]
command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; db migrate up'
# ALEC TODO - remove
# command: ["db", "migrate", "up"]
environment:
DB_URL: "postgresql://postgres:pg_password1@postgres1:5432/pg_database1?sslmode=disable"

recovery-signer-migrate2:
image: stellar/recoverysigner
depends_on:
- postgres2
restart: on-failure
command: ["db", "migrate", "up"]
command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; db migrate up'
# ALEC TODO - remove
# command: ["db", "migrate", "up"]
environment:
DB_URL: "postgresql://postgres:pg_password2@postgres2:5432/pg_database2?sslmode=disable"

Expand Down

0 comments on commit 164ac36

Please sign in to comment.