-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
services:
simplemem:
container_name: simplemem
build:
context: .
dockerfile: ./Dockerfile
volumes:
# Named volume so container user (appuser) can write; bind mount ./data often has wrong host ownership
- simplemem_data:/app/MCP/data
ports:
- "8000:8000"
environment:
- DATA_DIR=/app/MCP/data
- LANCEDB_PATH=/app/MCP/data/lancedb
- USER_DB_PATH=/app/MCP/data/users.db
- JWT_SECRET_KEY=${JWT_SECRET_KEY:-simplemem-secret-key-change-in-production}
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-simplemem-encryption-key-32bytes!}
- LLM_PROVIDER=${LLM_PROVIDER:-openrouter}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434/v1}
- OPENROUTER_BASE_URL=${OPENROUTER_BASE_URL:-https://openrouter.ai/api/v1}
- LLM_MODEL=${LLM_MODEL:-openai/gpt-4.1-mini}
- EMBEDDING_MODEL=${EMBEDDING_MODEL:-qwen3-embedding:4b}
- EMBEDDING_DIMENSION=${EMBEDDING_DIMENSION:-2560}
# Linux: enable host.docker.internal for Ollama on host
extra_hosts:
- "host.docker.internal:host-gateway"
# Optional: create .env from .env.example, then: docker compose --env-file .env up -d
restart: unless-stopped
volumes:
simplemem_data: