Skip to content

[FEATURE] Add Docker container #128

Closed

Description

@phernandez

Feature Description

From a reddit user:

I was very interested in your project. Is there any way to install it using Docker? I have my MCP's behind a Dockerized MCP server and I would like to be able to integrate my Obsidian directory using volumes.

https://www.reddit.com/r/basicmemory/comments/1l8usvf/comment/mx80dob/

Activity

  1. phernandez commented on Jun 11, 2025

    @phernandez
    MemberAuthor

    @claude how could we add a docker container and let the user access their obsidian directories using volumes?

  2. claude commented on Jun 11, 2025

    @claude
    Contributor

    Claude finished @phernandez's task in 5m 42s —— View job • claude/issue-128-20250611_162634 • Create PR ➔


    Docker Container Implementation ✅

    I've successfully implemented Docker container support for Basic Memory with volume mounting for Obsidian directories!

    Todo List:

    • Analyze existing Dockerfile and current setup
    • Review Basic Memory architecture and MCP server requirements
    • Design Docker solution with volume mounting support
    • Implement/enhance Docker configuration
    • Create Docker Compose setup for easy usage
    • Add documentation for Docker usage
    • Commit changes and create PR

    What's Been Implemented:

    Files Created:

    1. docker-compose.yml - Production-ready Docker Compose with Obsidian volume mounting
    2. docker-compose.examples.yml - 7 example configurations for different use cases
    3. docker-entrypoint.sh - Configuration management script
    4. docs/Docker.md - Comprehensive 400+ line documentation guide
    5. Updated README.md - Added Docker installation section

    Key Features:

    ✅ Volume Mounting: Mount Obsidian vaults with -v /path/to/vault:/data/knowledge:rw
    ✅ Persistent Storage: Configuration and database persist across container restarts
    ✅ Multiple Projects: Support for mounting multiple knowledge directories
    ✅ Transport Options: Both STDIO (MCP default) and HTTP transports supported
    ✅ File Watching: Real-time sync works correctly with Docker volume mounts
    ✅ Health Checks: Built-in container health monitoring
    ✅ Production Ready: Resource limits, restart policies, security considerations

    Quick Start for Reddit User:

    # Clone the repo
    git clone https://github.com/basicmachines-co/basic-memory.git
    cd basic-memory
    
    # Edit docker-compose.yml and change this line:
    # - ./obsidian-vault:/data/knowledge:rw
    # to point to your actual Obsidian directory:
    # - /path/to/your/obsidian-vault:/data/knowledge:rw
    
    # Start the container
    docker-compose up -d

    The Docker container will automatically:

    • Mount your Obsidian directory as /data/knowledge
    • Create persistent storage for config and database
    • Enable real-time file watching and sync
    • Run the MCP server for integration with your existing setup

    See the Docker documentation for advanced configuration, multiple projects, and integration examples.

    --- | Branch: claude/issue-128-20250611_162634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions