Rules:
.envis production-sensitive. Never print or expose secret values from.envin logs, commits, screenshots, or responses.- Do not commit real credentials. Keep the real
.envuntracked and set it to0600on live servers. - Do not reintroduce
./secrets-based runtime wiring unless explicitly requested. - Do not add Docker Compose default-value fallbacks for required application settings. Required env vars must be set explicitly in
.env. - Run Docker Compose commands from the project root (
open-memory/) only, or pass both-f docker-compose.ymland--project-directoryexplicitly. - Do not expose Postgres port
5432to host unless explicitly requested. - Preserve current bootstrap flow:
fs-initprepares host-mounted directories.mcpdepends onfs-initcompletion anddbhealth.
mcpmust mount./postgres/mcp-data:/app/datafor persistenttokens.json,users.json, and conversation DB.- Keep the two-role database model:
DB_ADMIN_USERis the primary/admin database role and may be used by PostgreSQL bootstrap, pgai install, vectorizer creation, and the vectorizer worker.MCP_DB_USERis the restricted MCP application role and should only have the privileges needed forpublic.memory_nodes.
- If authentication behaves unexpectedly, first check:
docker compose exec -T mcp ls -al /app/datadocker compose exec -T mcp env | grep ^PGEDGE_DB | sortdocker compose logs --tail=120 mcp
- Keep changes minimal and targeted; avoid unrelated refactors when fixing operational issues.