š³ Mem0ā self-hosted memory layer (API + dashboard + pgvector) in a single stack.
š¹ f3l1x.ioā | š» f3l1xā | š¦ @xf3l1xā
Mem0 ships a self-hosted server, but no maintained prebuilt images. This repository
builds multiarch (amd64, arm64) images from upstream mem0 releases.
| Tag | Description |
|---|---|
dockette/memzero:server | Mem0 REST API (FastAPI), latest build |
dockette/memzero:server-<version> | Mem0 REST API pinned to mem0 <version> |
dockette/memzero:dashboard | Mem0 dashboard (Next.js), latest build |
dockette/memzero:dashboard-<version> | Mem0 dashboard pinned to mem0 <version> |
Use the versioned tags (e.g. server-2.2.1) in production. The unversioned tags
move with every rebuild.
Download docker-compose.ymlā ,
postgres/init-db.shā and
.env.distā .
Copy .env.dist to .env, then set OPENAI_API_KEY and change JWT_SECRET and POSTGRES_PASSWORD.
Start the stack.
docker compose up
Open http://localhost:3000 and finish the setup wizard. It creates the first admin account and API key.
Use the API (OpenAPI docs on http://localhost:8888/docs).
curl -X POST http://localhost:8888/memories \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"I love hiking"}],"user_id":"alice"}'
| Service | Port | Description |
|---|---|---|
mem0 | 8888 | REST API, runs migrations on start |
dashboard | 3000 | Web UI (memories, entities, API keys) |
postgres | 8432 | pgvector storage + app database |
Data is persisted in .docker/postgres and .docker/history.
All variables are listed in .env.distā . The most important ones:
| Variable | Description |
|---|---|
OPENAI_API_KEY | LLM + embedder key, required (ANTHROPIC_API_KEY, GOOGLE_API_KEY also supported) |
JWT_SECRET | Secret for dashboard sessions, required |
POSTGRES_PASSWORD | Postgres password, required |
ADMIN_API_KEY | Optional master key for X-API-Key |
MEM0_DEFAULT_LLM_MODEL | Default LLM model (gpt-5-mini) |
MEM0_DEFAULT_EMBEDDER_MODEL | Default embedder model (text-embedding-3-small) |
MEM0_TELEMETRY | Upstream anonymous telemetry, false by default here |
AUTH_DISABLED | Local development only, never in production |
SKIP_MIGRATIONS | Set to skip alembic upgrade head on start |
See the Mem0 documentationā for more.
make build # build both images
make test # smoke test both images
make push # push both images
make up # start the stack
make health # check the stack
make clean # stop the stack and drop data
To upgrade mem0, bump MEM0_VERSION in .env.dist, Dockerfile and dashboard/Dockerfile. CI fails if they differ.
See how to contributeā to this package.
This package is currently maintaining by these authors.
Consider to supportā f3l1x. Also thank you for using this package.
Content type
Image
Digest
sha256:c12029d18ā¦
Size
146.5 MB
Last updated
1 day ago
docker pull dockette/memzero:server-2.2.1Pulls:
46
Last week