ragflow
This commit is contained in:
parent
2d607486e5
commit
668452c3ee
@ -1,7 +1,7 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres-agent:
|
||||||
image: pgvector/pgvector:pg16
|
image: pgvector/pgvector:pg16
|
||||||
container_name: qwen-agent-postgres
|
container_name: qwen-agent-postgres
|
||||||
environment:
|
environment:
|
||||||
@ -29,20 +29,19 @@ services:
|
|||||||
- "8001:8001"
|
- "8001:8001"
|
||||||
environment:
|
environment:
|
||||||
# 应用配置
|
# 应用配置
|
||||||
- BACKEND_HOST=http://api-dev.gbase.ai
|
|
||||||
- MAX_CONTEXT_TOKENS=262144
|
- MAX_CONTEXT_TOKENS=262144
|
||||||
- DEFAULT_THINKING_ENABLE=true
|
- DEFAULT_THINKING_ENABLE=true
|
||||||
- PROFILE=low_memory
|
- PROFILE=low_memory
|
||||||
- RAGFLOW_API_URL=http://172.26.31.232:1080
|
- RAGFLOW_API_URL=http://ragflow-cpu
|
||||||
- RAGFLOW_API_KEY=ragflow-0vldzYY_SfQLnjBIGOBDDgvdgWemdK4gmH1L7kgenQ0
|
- RAGFLOW_API_KEY=ragflow-0vldzYY_SfQLnjBIGOBDDgvdgWemdK4gmH1L7kgenQ0
|
||||||
# PostgreSQL 配置
|
# PostgreSQL 配置
|
||||||
- CHECKPOINT_DB_URL=postgresql://postgres:E5ACJo6zJub4QS@postgres:5432/agent_db
|
- CHECKPOINT_DB_URL=postgresql://postgres:E5ACJo6zJub4QS@postgres-agent:5432/agent_db
|
||||||
volumes:
|
volumes:
|
||||||
# 挂载项目数据目录
|
# 挂载项目数据目录
|
||||||
- ./projects:/app/projects
|
- ./projects:/app/projects
|
||||||
- ./models:/app/models
|
- ./models:/app/models
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres-agent:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -51,5 +50,12 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- ragflow
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
networks:
|
||||||
|
ragflow:
|
||||||
|
name: docker_ragflow
|
||||||
|
external: true
|
||||||
@ -12,9 +12,9 @@
|
|||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"rag_retrieve": {
|
"rag_retrieve": {
|
||||||
"transport": "http",
|
"transport": "http",
|
||||||
"url": "http://host.docker.internal:9382/mcp/",
|
"url": "http://ragflow-cpu:9382/mcp/",
|
||||||
"headers": {
|
"headers": {
|
||||||
"api_key": "ragflow-MRqxnDnYZ1yp5kklDMIlKH4f1qezvXIngSMGPhu1AG8",
|
"api_key": "ragflow-0vldzYY_SfQLnjBIGOBDDgvdgWemdK4gmH1L7kgenQ0",
|
||||||
"X-Dataset-Ids": "{dataset_ids}"
|
"X-Dataset-Ids": "{dataset_ids}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user