Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(compose): use env_file array form for builtin_models compatibility
wizardchenea47dce33738
diff --git a/Makefile b/Makefileindex 0378d2445..73aeb6a52 100644--- a/Makefile+++ b/Makefile@@ -123,7 +123,12 @@ docker-build-frontend:docker-build-all: docker-build-app docker-build-docreader docker-build-frontend# Run Docker container (传统方式)+# Touch .env if missing — docker-compose.yml's `env_file: [.env]` is required+# for ${ENV} interpolation in builtin_models.yaml and would otherwise refuse+# to parse on fresh clones. `start-all` handles this via check_env_file; this+# direct path needs its own guard.docker-run:+ @[ -f .env ] || ([ -f .env.example ] && cp .env.example .env || touch .env)docker-compose up# 使用新脚本启动所有服务@@ -164,6 +169,7 @@ clean-images:# Restart Docker container (stop, start)docker-restart:+ @[ -f .env ] || ([ -f .env.example ] && cp .env.example .env || touch .env)docker-compose stop -t 60docker-compose updiff --git a/docker-compose.yml b/docker-compose.ymlindex 7c3b68345..ff04f0aff 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -51,13 +51,18 @@ services:timeout: 10sretries: 3start_period: 60s- # Optional: source .env so deployment-specific vars (e.g. those referenced- # by config/builtin_models.yaml via ${ENV}) reach the app container without- # having to be listed individually under `environment:`. Falls back- # silently when .env is absent (e.g. fresh upstream clone).+ # Source .env so deployment-specific variables (e.g. those referenced by+ # config/builtin_models.yaml via ${ENV}, or any future feature) reach the+ # app container without having to be enumerated under `environment:`.+ #+ # NOTE: the array form below is used instead of the map form+ # (env_file: - path: .env, required: false) because the map syntax+ # requires Docker Compose v2.24+ (Jan 2024) and would break parsing on+ # older deploys. The trade-off is that Compose errors out if .env is+ # absent — see scripts/start_all.sh for the pre-flight touch that keeps+ # fresh clones working.env_file:- - path: .env- required: false+ - .envenvironment:- LOG_LEVEL=${LOG_LEVEL:-}- COS_SECRET_ID=${COS_SECRET_ID:-}