Spaces:
Paused
Paused
| # mem0 Self-Hosted - docker-compose.yml | |
| services: | |
| mem0: | |
| build: . | |
| container_name: mem0 | |
| ports: | |
| - "7864:7860" | |
| env_file: | |
| - .env | |
| environment: | |
| - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | |
| - OPENAI_API_KEY=${OPENAI_API_KEY} | |
| - JWT_SECRET=${JWT_SECRET} | |
| - ADMIN_API_KEY=${ADMIN_API_KEY:-} | |
| - AUTH_DISABLED=${AUTH_DISABLED:-false} | |
| - MEM0_TELEMETRY=${MEM0_TELEMETRY:-true} | |
| - DASHBOARD_URL=http://localhost:7860 | |
| - NEXT_PUBLIC_API_URL=/api | |
| - NEXT_PUBLIC_INSTANCE_NAME=Mem0 | |
| # 127.0.0.1, not localhost: Node >=17 resolves localhost to ::1 first and | |
| # uvicorn listens on IPv4 only -> ECONNREFUSED during token rotation | |
| - API_INTERNAL_URL=http://127.0.0.1:8000 | |
| - MEM0_DEFAULT_LLM_MODEL=${MEM0_DEFAULT_LLM_MODEL:-gpt-5-mini} | |
| - MEM0_DEFAULT_EMBEDDER_MODEL=${MEM0_DEFAULT_EMBEDDER_MODEL:-text-embedding-3-small} | |
| volumes: | |
| - mem0_data:/data | |
| - mem0_history:/opt/mem0/api/history | |
| volumes: | |
| mem0_data: | |
| mem0_history: |