From 1514e1269d12fcbf858b53c3451616f199548d50 Mon Sep 17 00:00:00 2001 From: forehalo Date: Tue, 10 Dec 2024 09:38:19 +0800 Subject: [PATCH] fix: add explicit db name and user to pg_isready check commit 783fd4d5f335a8921fe1617f46150471c7c1156b Author: forehalo Date: Mon Dec 9 20:55:43 2024 +0800 chore: fix lint error commit 0cf3740488aa76940c520c9d2dc4aa5aff9e39a6 Author: Charles SENGES Date: Sun Dec 8 01:05:36 2024 +0100 fix(compose.yaml): add explicit db name and user to pg_isready check --- .github/deployment/self-host/compose.yaml | 3 ++- .prettierignore | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/deployment/self-host/compose.yaml b/.github/deployment/self-host/compose.yaml index 60f49f6ab..68f3c3f5e 100644 --- a/.github/deployment/self-host/compose.yaml +++ b/.github/deployment/self-host/compose.yaml @@ -59,7 +59,8 @@ services: # or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy POSTGRES_HOST_AUTH_METHOD: trust healthcheck: - test: ['CMD-SHELL', 'pg_isready'] + test: + ['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"] interval: 1m start_interval: 10s start_period: 1m diff --git a/.prettierignore b/.prettierignore index 0c4099d55..ccc055699 100644 --- a/.prettierignore +++ b/.prettierignore @@ -26,3 +26,4 @@ packages/frontend/templates/onboarding packages/backend/native/index.d.ts packages/frontend/native/index.d.ts packages/frontend/native/index.js +compose.yaml \ No newline at end of file