easyai/docker/postgres/init-pgvector.sql
wangbo ded45063d9 feat: 新增 Agent 记忆服务部署、重命名容器、整理 env 配置
- 新增 agent-memory 服务与 .env.AMS.sample
- easyai-pgvector 共用 PostgreSQL,独立库 easyai_memory
- 新增 docker/postgres/init-pgvector.sql 初始化
- 容器名: comfyAI-web→easyai-web, comfy-server→easyai-server
- easyai-asg-pg→easyai-pgvector
- 记忆服务端口配置移至 .env(comfy-server 调用用)
- 整理 .env.sample 结构,新增 /ams-api/ Nginx 代理

Made-with: Cursor
2026-03-20 17:06:39 +08:00

15 lines
515 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 首次启动时执行,与 ASG 共用同一 PostgreSQL 实例
-- 1. 为 agent_governance 启用 pgvector兼容共库场景
\c agent_governance
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS pgcrypto;
-- 2. 创建记忆服务独立数据库 easyai_memory
CREATE DATABASE easyai_memory;
GRANT ALL PRIVILEGES ON DATABASE easyai_memory TO easyai;
-- 3. 为 easyai_memory 启用 pgvector
\c easyai_memory
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS pgcrypto;