fix: docker-compose pg_url removal; depends on pg -> vectorDB (#5733)

This commit is contained in:
Finley Ge
2025-10-06 11:42:57 +08:00
committed by GitHub
parent 69559814e7
commit b8c2c7ad98
22 changed files with 60 additions and 129 deletions
+3 -8
View File
@@ -1,5 +1,4 @@
# 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行
@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置
x-share-db-config: &x-share-db-config
MONGODB_URI: mongodb://username:password@mongo:27017/fastgpt?authSource=admin
MONGODB_URI: mongodb://myusername:mypassword@mongo:27017/fastgpt?authSource=admin
DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio
@@ -47,7 +46,6 @@ services:
# milvus
milvus-etcd:
container_name: milvus-etcd
image:
image: quay.io/coreos/etcd:v3.5.5
environment:
- ETCD_AUTO_COMPACTION_MODE=revision
@@ -64,7 +62,7 @@ services:
interval: 30s
timeout: 20s
retries: 3
milvusStandalone:
vectorDB:
container_name: milvusStandalone
image: milvusdb/milvus:v2.4.3
command: ['milvus', 'run', 'standalone']
@@ -158,7 +156,7 @@ services:
depends_on:
- mongo
- sandbox
- pg
- vectorDB
restart: always
environment:
<<: [*x-share-db-config, *x-vec-config]
@@ -185,9 +183,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error
LOG_LEVEL: info
STORE_LOG_LEVEL: warn