Principle:24kchengYe MemoMind Production Deployment
| Knowledge Sources | |
|---|---|
| Domains | DevOps, Deployment |
| Last Updated | 2026-10-28 00:00 GMT |
Overview
Pattern for deploying a memory system to production using Docker Compose with PostgreSQL+pgvector, application-layer Bearer auth, network isolation via Tailscale, and a password-protected web dashboard.
Description
Production deployment of a memory system requires:
- Database: PostgreSQL 17 with pgvector extension for vector similarity search
- API server: uvicorn ASGI with HTTP + MCP endpoints
- Dashboard: web UI for browsing memories and chat history
- Authentication: revocable multi-key tenant extension
- Network isolation: Tailscale-only binding (no public exposure)
The Docker Compose configuration defines three services: `pg` (database), `memomind-api` (API server), and `dashboard` (web UI). Port bindings use `BIND_IP` (the Tailscale IP), defaulting to 127.0.0.1. Application-layer Bearer auth is still required even on the Tailscale network.
Usage
Use this principle when deploying a memory system for personal or small-team production use where Tailscale provides the network layer and the application handles auth.
Theoretical Basis
# Abstract Docker Compose (simplified)
services:
pg:
image: pgvector/pgvector:pg17
environment:
POSTGRES_PASSWORD: ${PG_PASSWORD}
api:
build: .
environment:
HINDSIGHT_API_TENANT_EXTENSION: tenant:MultiApiKeyTenantExtension
HINDSIGHT_API_TENANT_API_KEY: ${MEMOMIND_MCP_TOKEN}
ports:
- "${BIND_IP:-127.0.0.1}:19999:19999"
dashboard:
build: .
ports:
- "${BIND_IP:-127.0.0.1}:9999:9999"
Defense in depth: Tailscale (network layer) + Bearer auth (application layer) + dashboard session auth (UI layer).