Commit b8c2c7ad by Finley Ge Committed by GitHub

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

parent 69559814
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
### 加向量库 ### 加向量库
比如添加 `exampleDB` 向量库: 比如添加 `exampleDB` 向量库:
1. 添加 vector service 配置在 `templates/vector` 下面,例如 `templates/vector/exampleDB.txt` 内容可以参考其他 txt,注意缩进,image 名字也要替换成 ${{exampleDB.image}}:${{exampleDB:tag}} 1. 添加 vector service 配置在 `templates/vector` 下面,例如 `templates/vector/exampleDB.txt` 内容可以参考其他 txt,注意缩进,image 名字也要替换成 ${{exampleDB.image}}:${{exampleDB:tag}}, service name 必须是 `vectorDB`
2.`args.json` 中添加 `exampleDB` 的配置 2.`args.json` 中添加 `exampleDB` 的配置
3. init.mjs vector enum 中添加 `vector` 3. init.mjs vector enum 中添加 `vector`
4. init.mjs 中添加 vector 的相关配置: 4. init.mjs 中添加 vector 的相关配置:
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -47,7 +46,6 @@ services: ...@@ -47,7 +46,6 @@ services:
# milvus # milvus
milvus-etcd: milvus-etcd:
container_name: milvus-etcd container_name: milvus-etcd
image:
image: quay.io/coreos/etcd:v3.5.5 image: quay.io/coreos/etcd:v3.5.5
environment: environment:
- ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_MODE=revision
...@@ -64,7 +62,7 @@ services: ...@@ -64,7 +62,7 @@ services:
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
milvusStandalone: vectorDB:
container_name: milvusStandalone container_name: milvusStandalone
image: milvusdb/milvus:v2.4.3 image: milvusdb/milvus:v2.4.3
command: ['milvus', 'run', 'standalone'] command: ['milvus', 'run', 'standalone']
...@@ -158,7 +156,7 @@ services: ...@@ -158,7 +156,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -185,9 +183,6 @@ services: ...@@ -185,9 +183,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config ...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
undefined OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
ob: vectorDB:
image: oceanbase/oceanbase-ce:4.3.5-lts image: oceanbase/oceanbase-ce:4.3.5-lts
container_name: ob container_name: ob
restart: always restart: always
...@@ -133,7 +133,7 @@ services: ...@@ -133,7 +133,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -160,9 +160,6 @@ services: ...@@ -160,9 +160,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config ...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
pg: vectorDB:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:0.8.0-pg15 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:0.8.0-pg15
container_name: pg container_name: pg
restart: always restart: always
...@@ -115,7 +114,7 @@ services: ...@@ -115,7 +114,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -142,9 +141,6 @@ services: ...@@ -142,9 +141,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -98,7 +97,7 @@ services: ...@@ -98,7 +97,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -125,9 +124,6 @@ services: ...@@ -125,9 +124,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -47,7 +46,6 @@ services: ...@@ -47,7 +46,6 @@ services:
# milvus # milvus
milvus-etcd: milvus-etcd:
container_name: milvus-etcd container_name: milvus-etcd
image:
image: quay.io/coreos/etcd:v3.5.5 image: quay.io/coreos/etcd:v3.5.5
environment: environment:
- ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_MODE=revision
...@@ -64,7 +62,7 @@ services: ...@@ -64,7 +62,7 @@ services:
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
milvusStandalone: vectorDB:
container_name: milvusStandalone container_name: milvusStandalone
image: milvusdb/milvus:v2.4.3 image: milvusdb/milvus:v2.4.3
command: ['milvus', 'run', 'standalone'] command: ['milvus', 'run', 'standalone']
...@@ -158,7 +156,7 @@ services: ...@@ -158,7 +156,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -185,9 +183,6 @@ services: ...@@ -185,9 +183,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config ...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
undefined OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
ob: vectorDB:
image: oceanbase/oceanbase-ce:4.3.5-lts image: oceanbase/oceanbase-ce:4.3.5-lts
container_name: ob container_name: ob
restart: always restart: always
...@@ -133,7 +133,7 @@ services: ...@@ -133,7 +133,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -160,9 +160,6 @@ services: ...@@ -160,9 +160,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config ...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
pg: vectorDB:
image: pgvector/pgvector:0.8.0-pg15 image: pgvector/pgvector:0.8.0-pg15
container_name: pg container_name: pg
restart: always restart: always
...@@ -115,7 +114,7 @@ services: ...@@ -115,7 +114,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -142,9 +141,6 @@ services: ...@@ -142,9 +141,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -98,7 +97,7 @@ services: ...@@ -98,7 +97,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -125,9 +124,6 @@ services: ...@@ -125,9 +124,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
...@@ -95,7 +95,7 @@ const vector = { ...@@ -95,7 +95,7 @@ const vector = {
}, },
ob: { ob: {
db: '', db: '',
cofig: `\ config: `\
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
`, `,
extra: `\ extra: `\
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -97,7 +96,7 @@ ${{vec.db}} ...@@ -97,7 +96,7 @@ ${{vec.db}}
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -124,9 +123,6 @@ ${{vec.db}} ...@@ -124,9 +123,6 @@ ${{vec.db}}
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
# milvus # milvus
milvus-etcd: milvus-etcd:
container_name: milvus-etcd container_name: milvus-etcd
image:
image: ${{milvus-etcd.image}}:${{milvus-etcd.tag}} image: ${{milvus-etcd.image}}:${{milvus-etcd.tag}}
environment: environment:
- ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_MODE=revision
...@@ -34,7 +33,7 @@ ...@@ -34,7 +33,7 @@
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
milvusStandalone: vectorDB:
container_name: milvusStandalone container_name: milvusStandalone
image: ${{milvus-standalone.image}}:${{milvus-standalone.tag}} image: ${{milvus-standalone.image}}:${{milvus-standalone.tag}}
command: ['milvus', 'run', 'standalone'] command: ['milvus', 'run', 'standalone']
......
ob: vectorDB:
image: ${{oceanbase.image}}:${{oceanbase.tag}} image: ${{oceanbase.image}}:${{oceanbase.tag}}
container_name: ob container_name: ob
restart: always restart: always
......
pg: vectorDB:
image: ${{pg.image}}:${{pg.tag}} image: ${{pg.image}}:${{pg.tag}}
container_name: pg container_name: pg
restart: always restart: always
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -47,7 +46,6 @@ services: ...@@ -47,7 +46,6 @@ services:
# milvus # milvus
milvus-etcd: milvus-etcd:
container_name: milvus-etcd container_name: milvus-etcd
image:
image: quay.io/coreos/etcd:v3.5.5 image: quay.io/coreos/etcd:v3.5.5
environment: environment:
- ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_MODE=revision
...@@ -64,7 +62,7 @@ services: ...@@ -64,7 +62,7 @@ services:
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
milvusStandalone: vectorDB:
container_name: milvusStandalone container_name: milvusStandalone
image: milvusdb/milvus:v2.4.3 image: milvusdb/milvus:v2.4.3
command: ['milvus', 'run', 'standalone'] command: ['milvus', 'run', 'standalone']
...@@ -158,7 +156,7 @@ services: ...@@ -158,7 +156,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -185,9 +183,6 @@ services: ...@@ -185,9 +183,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config ...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
undefined OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
ob: vectorDB:
image: oceanbase/oceanbase-ce:4.3.5-lts image: oceanbase/oceanbase-ce:4.3.5-lts
container_name: ob container_name: ob
restart: always restart: always
...@@ -133,7 +133,7 @@ services: ...@@ -133,7 +133,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -160,9 +160,6 @@ services: ...@@ -160,9 +160,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config ...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
pg: vectorDB:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:0.8.0-pg15 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:0.8.0-pg15
container_name: pg container_name: pg
restart: always restart: always
...@@ -115,7 +114,7 @@ services: ...@@ -115,7 +114,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -142,9 +141,6 @@ services: ...@@ -142,9 +141,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -98,7 +97,7 @@ services: ...@@ -98,7 +97,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -125,9 +124,6 @@ services: ...@@ -125,9 +124,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -47,7 +46,6 @@ services: ...@@ -47,7 +46,6 @@ services:
# milvus # milvus
milvus-etcd: milvus-etcd:
container_name: milvus-etcd container_name: milvus-etcd
image:
image: quay.io/coreos/etcd:v3.5.5 image: quay.io/coreos/etcd:v3.5.5
environment: environment:
- ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_MODE=revision
...@@ -64,7 +62,7 @@ services: ...@@ -64,7 +62,7 @@ services:
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
milvusStandalone: vectorDB:
container_name: milvusStandalone container_name: milvusStandalone
image: milvusdb/milvus:v2.4.3 image: milvusdb/milvus:v2.4.3
command: ['milvus', 'run', 'standalone'] command: ['milvus', 'run', 'standalone']
...@@ -158,7 +156,7 @@ services: ...@@ -158,7 +156,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -185,9 +183,6 @@ services: ...@@ -185,9 +183,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config ...@@ -21,12 +20,13 @@ x-share-db-config: &x-share-db-config
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
undefined OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/test
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
ob: vectorDB:
image: oceanbase/oceanbase-ce:4.3.5-lts image: oceanbase/oceanbase-ce:4.3.5-lts
container_name: ob container_name: ob
restart: always restart: always
...@@ -133,7 +133,7 @@ services: ...@@ -133,7 +133,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -160,9 +160,6 @@ services: ...@@ -160,9 +160,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config ...@@ -26,7 +25,7 @@ x-vec-config: &x-vec-config
version: '3.3' version: '3.3'
services: services:
# Vector DB # Vector DB
pg: vectorDB:
image: pgvector/pgvector:0.8.0-pg15 image: pgvector/pgvector:0.8.0-pg15
container_name: pg container_name: pg
restart: always restart: always
...@@ -115,7 +114,7 @@ services: ...@@ -115,7 +114,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -142,9 +141,6 @@ services: ...@@ -142,9 +141,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
# 用于部署的 docker-compose 文件: # 用于部署的 docker-compose 文件:
# - 向量库为 Pgvector
# - FastGPT 端口映射为 3000:3000 # - FastGPT 端口映射为 3000:3000
# - FastGPT-mcp-server 端口映射 3005:3000 # - FastGPT-mcp-server 端口映射 3005:3000
# - 建议修改账密后再运行 # - 建议修改账密后再运行
...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token' ...@@ -10,7 +9,7 @@ x-plugin-auth-token: &x-plugin-auth-token 'token'
x-aiproxy-token: &x-aiproxy-token 'token' x-aiproxy-token: &x-aiproxy-token 'token'
# 数据库连接相关配置 # 数据库连接相关配置
x-share-db-config: &x-share-db-config 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 DB_MAX_LINK: 30
REDIS_URL: redis://default:mypassword@redis:6379 REDIS_URL: redis://default:mypassword@redis:6379
S3_ENDPOINT: fastgpt-minio S3_ENDPOINT: fastgpt-minio
...@@ -98,7 +97,7 @@ services: ...@@ -98,7 +97,7 @@ services:
depends_on: depends_on:
- mongo - mongo
- sandbox - sandbox
- pg - vectorDB
restart: always restart: always
environment: environment:
<<: [*x-share-db-config, *x-vec-config] <<: [*x-share-db-config, *x-vec-config]
...@@ -125,9 +124,6 @@ services: ...@@ -125,9 +124,6 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY # AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token AIPROXY_API_TOKEN: *x-aiproxy-token
# 数据库最大连接数
PG_URL: postgresql://username:password@pg:5432/postgres
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
LOG_LEVEL: info LOG_LEVEL: info
STORE_LOG_LEVEL: warn STORE_LOG_LEVEL: warn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment