From c2a28bd2215c1a5da388cc7ed7ea3f3e35d7acb9 Mon Sep 17 00:00:00 2001 From: Roman Reznikov Date: Sun, 10 Jul 2022 16:17:54 +0400 Subject: [PATCH] #22: fix: change MongoDB healthcheck --- .github/workflows/workflow.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 2c41cdd..e6b1f45 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -53,10 +53,11 @@ jobs: ports: - 27017:27017 options: >- - --health-cmd "echo 'db.runCommand("ping").ok' | mongo mongodb:27017/ugc_test --quiet || exit 1" + --health-cmd "echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet || exit 1" --health-interval 10s --health-timeout 10s --health-retries 5 + --health-start_period 20s steps: - uses: actions/checkout@v3 - name: Set up Python 3.10