feat: SearXNG 搜索集成 + DevTools Docker + PG 备份 + 文档更新

- web_search 工具/插件接入自托管 SearXNG,支持百度/必应/搜狗/360搜索
- DevTools 加入 docker-compose.dev.yml,devtools/Dockerfile
- scripts/pg-backup.sh 数据库备份恢复脚本,docs/pg-backup-migration.md
- 后台思考 + datetime 插件时区默认 Asia/Shanghai
- docker-compose 对齐 volume 名称,清理 tool-engine 残留引用
- README.md / Deploy.md 更新至当前架构(移除简报/tool-engine,新增搜索/跨端同步/DevTools)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 20:36:38 +08:00
parent 08687bb13d
commit b14d267642
15 changed files with 574 additions and 137 deletions
+52 -27
View File
@@ -5,6 +5,7 @@ services:
# ========== 基础设施 ==========
postgres:
image: pgvector/pgvector:pg16
container_name: cyrene_postgres
environment:
POSTGRES_USER: cyrene
POSTGRES_PASSWORD: cyrene_pass
@@ -12,7 +13,7 @@ services:
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- cyrene_pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cyrene -d cyrene_ai"]
interval: 10s
@@ -21,10 +22,11 @@ services:
redis:
image: redis:7-alpine
container_name: cyrene_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
- cyrene_redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
@@ -33,14 +35,16 @@ services:
qdrant:
image: qdrant/qdrant:latest
container_name: cyrene_qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
- cyrene_qdrant_data:/qdrant/storage
minio:
image: minio/minio:latest
container_name: cyrene_minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
@@ -49,16 +53,51 @@ services:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
- cyrene_minio_data:/data
nats:
image: nats:2-alpine
container_name: cyrene_nats
ports:
- "4222:4222"
- "8222:8222"
# ========== 搜索引擎 ==========
searxng:
image: searxng/searxng:latest
container_name: cyrene_searxng
volumes:
- ./searxng/settings.yml:/etc/searxng/settings.yml:ro
environment:
SEARXNG_SETTINGS_PATH: /etc/searxng/settings.yml
ports:
- "8088:8080"
restart: unless-stopped
# ========== 开发调试工具 ==========
devtools:
container_name: cyrene_devtools
build:
context: ./devtools
dockerfile: Dockerfile
environment:
DEVTOOLS_PORT: "9090"
GATEWAY_URL: http://gateway:8080
AI_CORE_URL: http://ai-core:8081
MEMORY_SERVICE_URL: http://memory-service:8091
VOICE_SERVICE_URL: http://voice-service:8093
PLATFORM_BRIDGE_URL: http://platform-bridge:8095
ADMIN_USERNAME: admin
ADMIN_PASSWORD: cyrene-dev-admin
ports:
- "9090:9090"
depends_on:
- gateway
restart: unless-stopped
# ========== 后端服务 ==========
memory-service:
container_name: cyrene_memory_service
build:
context: ./backend/memory-service
dockerfile: Dockerfile
@@ -76,23 +115,8 @@ services:
condition: service_healthy
restart: unless-stopped
tool-engine:
build:
context: ./backend/tool-engine
dockerfile: Dockerfile
environment:
PORT: "8092"
IOT_SERVICE_URL: http://iot-debug-service:8083
DATA_DIR: /tmp/cyrene_data
DB_URL: "postgres://cyrene:cyrene_pass@postgres:5432/cyrene_ai?sslmode=disable"
ports:
- "8092:8092"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
voice-service:
container_name: cyrene_voice_service
build:
context: ./backend/voice-service
dockerfile: Dockerfile
@@ -106,6 +130,7 @@ services:
restart: unless-stopped
ai-core:
container_name: cyrene_ai_core
build:
context: ./backend/ai-core
dockerfile: Dockerfile
@@ -122,6 +147,7 @@ services:
POSTGRES_PASSWORD: cyrene_pass
POSTGRES_DB: cyrene_ai
IOT_DEBUG_SERVICE_URL: http://iot-debug-service:8083
SEARXNG_URL: http://searxng:8080
ENABLE_BACKGROUND_THINKING: ${ENABLE_BACKGROUND_THINKING:-true}
ports:
- "8081:8081"
@@ -133,6 +159,7 @@ services:
restart: unless-stopped
iot-debug-service:
container_name: cyrene_iot_debug_service
build:
context: ./backend/iot-debug-service
dockerfile: Dockerfile
@@ -143,6 +170,7 @@ services:
restart: unless-stopped
gateway:
container_name: cyrene_gateway
build:
context: ./backend/gateway
dockerfile: Dockerfile
@@ -153,7 +181,6 @@ services:
JWT_EXPIRY_HOURS: "720"
AI_CORE_URL: http://ai-core:8081
MEMORY_SERVICE_URL: http://memory-service:8091
TOOL_ENGINE_URL: http://tool-engine:8092
VOICE_SERVICE_URL: http://voice-service:8093
IOT_DEBUG_SERVICE_URL: http://iot-debug-service:8083
POSTGRES_HOST: postgres
@@ -174,14 +201,12 @@ services:
condition: service_started
memory-service:
condition: service_started
tool-engine:
condition: service_started
voice-service:
condition: service_started
restart: unless-stopped
volumes:
pg_data:
redis_data:
qdrant_data:
minio_data:
cyrene_pg_data:
cyrene_redis_data:
cyrene_qdrant_data:
cyrene_minio_data: