From b18ae0f73414d1406eed4cf64fd6115e4b5f56a5 Mon Sep 17 00:00:00 2001 From: Greenplumwine <865730675@qq.com> Date: Fri, 14 Aug 2026 10:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90Fix=E3=80=91=E4=BF=AE=E5=A4=8Ddocker-c?= =?UTF-8?q?ompose.yml=E4=B8=AD=E9=85=8D=E7=BD=AE=E7=9A=84postgres=20?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=A3=80=E6=9F=A5=E9=97=AE=E9=A2=98=20(#2704?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .air.toml | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.air.toml b/.air.toml index 73f8c321..d471342e 100644 --- a/.air.toml +++ b/.air.toml @@ -7,7 +7,7 @@ tmp_dir = "tmp" bin = "./tmp/main" cmd = "go build -ldflags=\"$(./scripts/get_version.sh ldflags) -X 'google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn'\" -o ./tmp/main ./cmd/server" delay = 1000 - exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs", "logs", "data", "WeKnora-Chrome-Extension", "Formula", "dataset", "docreader", "docker", "llm_debug", "web", "mcp-server", "misc", "scripts", "dist", "client", "helm"] + exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs", "logs", "data", "WeKnora-Chrome-Extension", "Formula", "dataset", "docreader", "docker", "llm_debug", "web", "mcp-server", "misc", "scripts", "dist", "client", "helm", "website-docs"] exclude_file = [] exclude_regex = ["_test.go"] exclude_unchanged = false diff --git a/docker-compose.yml b/docker-compose.yml index c25547fb..651ba3dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -512,7 +512,7 @@ services: networks: - WeKnora-network healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"] + test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"] interval: 10s # 增加时间间隔 timeout: 10s # 增加超时时间 retries: 3 # 减少重试次数,让失败更快反馈