From e77a7aba9b46b37346b74e2bd3dbcf4b644ad25f Mon Sep 17 00:00:00 2001 From: Corey Rice Date: Tue, 19 Sep 2023 09:43:38 -0300 Subject: [PATCH] ci: wait container --- .github/workflows/ci.yaml | 2 +- docker-compose.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aa7a3f4f..23fd40ec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -55,7 +55,7 @@ jobs: uses: actions/checkout@v2 - name: Start containers - run: docker-compose up -d + run: docker-compose up -d --wait - name: Generate graphql types run: | diff --git a/docker-compose.yaml b/docker-compose.yaml index 4b1f603e..6095e6d4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,6 +15,11 @@ services: condition: service_started postgres: condition: service_started + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:15672"] + interval: 30s + timeout: 10s + retries: 5 environment: postgres_host: postgres postgres_user: graph-node