Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

【Fix】修复docker-compose.yml中配置的postgres 安全检查问题 (#2704)

Greenplumwineb18ae0f73414
diff --git a/.air.toml b/.air.toml
index 73f8c3219..d471342e4 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 c25547fb4..651ba3dca 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 # 减少重试次数,让失败更快反馈