diff --git a/docker-compose.yml b/docker-compose.yml index ce910d7..e4177e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,11 @@ services: POSTGRES_DB: pg_database1 ports: - "5432:5432" + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 5 postgres2: image: postgres @@ -15,15 +20,21 @@ services: POSTGRES_DB: pg_database2 ports: - "5433:5432" + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 5 recovery-signer-migrate1: image: stellar/recoverysigner depends_on: - postgres1 - entrypoint: ["/bin/bash", "-c"] - command: > - while ! + # while ! - while ! + # while !