Files
Agent-System/docker-compose.shared.yml
T
weichenandCursor fe0bb3a503 fix(config): layer root and env compose files with expanded overrides
Load agent/cursor env overrides in config loader; pass root .env plus
environment-specific env files in env-service; align compose env_file mounts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 02:55:18 +00:00

37 lines
1.1 KiB
YAML

# =============================================================================
# 共享基础设施编排:知识库 (Knowledge Base) 服务
# 三个分支 (dev / test / main) 共享同一个知识库向量检索服务
# =============================================================================
name: agent-infra
services:
shared-kb-db:
image: pgvector/pgvector:pg16
container_name: shuimu-kb-shared
environment:
POSTGRES_USER: ${KB_DB_USER:-regkb}
POSTGRES_PASSWORD: ${KB_DB_PASSWORD:?KB_DB_PASSWORD is required}
POSTGRES_DB: ${KB_DB_NAME:-regulations}
ports:
- "127.0.0.1:${KB_PUBLISH_PORT:-5432}:5432"
volumes:
- shared-kb-pgdata:/var/lib/postgresql/data
- ./deploy/postgres/kb_init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${KB_DB_USER:-regkb} -d ${KB_DB_NAME:-regulations}"]
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
networks:
- shared-net
networks:
shared-net:
name: chat-agent-shared-net
external: true
volumes:
shared-kb-pgdata:
name: chat-agent-shared-kb-pgdata