Skip to content

Commit 3269a2f

Browse files
phernandezclaude[bot]claude
authored
feat: add Docker container support with volume mounting (#131)
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: phernandez <phernandez@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent b8191d0 commit 3269a2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+366
-6257
lines changed

.env.oauth.example

Lines changed: 0 additions & 55 deletions
This file was deleted.

AUTH.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
21
FROM python:3.12-slim
32

43
WORKDIR /app
@@ -10,7 +9,5 @@ COPY . .
109
RUN pip install --upgrade pip \
1110
&& pip install . --no-cache-dir --ignore-installed
1211

13-
# Expose port if necessary (e.g., uv might use a port, but MCP over stdio so not needed here)
14-
15-
# Use the basic-memory entrypoint to run the MCP server
16-
CMD ["basic-memory", "mcp"]
12+
# Use the basic-memory entrypoint to run the MCP server with default SSE transport
13+
CMD ["basic-memory", "mcp", "--transport", "sse", "--host", "0.0.0.0", "--port", "8000"]

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,31 @@ Development versions are automatically published on every commit to main with ve
411411
pip install basic-memory --pre --force-reinstall
412412
```
413413

414+
### Docker
415+
416+
Run Basic Memory in a container with volume mounting for your Obsidian vault:
417+
418+
```bash
419+
# Clone and start with Docker Compose
420+
git clone https://github.com/basicmachines-co/basic-memory.git
421+
cd basic-memory
422+
423+
# Edit docker-compose.yml to point to your Obsidian vault
424+
# Then start the container
425+
docker-compose up -d
426+
```
427+
428+
Or use Docker directly:
429+
```bash
430+
docker run -d \
431+
--name basic-memory-server \
432+
-v /path/to/your/obsidian-vault:/data/knowledge:rw \
433+
-v basic-memory-config:/root/.basic-memory:rw \
434+
ghcr.io/basicmachines-co/basic-memory:latest
435+
```
436+
437+
See [Docker Setup Guide](docs/Docker.md) for detailed configuration options, multiple project setup, and integration examples.
438+
414439
## License
415440

416441
AGPL-3.0

0 commit comments

Comments
 (0)