feat: add control plane authentication baseline

This commit is contained in:
wlx committed 2026-08-21 15:47:57 +08:00
1 parent a4c93ff1a7
commit 0d10e2d124
21 files changed
+1403 -18

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# Control Plane 数据库
这是 D3 身份与权限服务使用的本地 PostgreSQL。它与 \`infra/otari/\` 的网关数据库独立,避免平台身份数据与网关执行数据混用。
\`\`\`powershell
cd infra/control-plane
Copy-Item .env.example .env
docker compose up -d
\`\`\`
然后在 \`control-plane/.env\` 中设置:
\`\`\`dotenv
DATABASE_URL=postgresql://moyi:你的数据库密码@127.0.0.1:5434/moyi_control
\`\`\`
再运行 \`pnpm migrate\` 与 \`pnpm seed:admin\`。