feat: init

This commit is contained in:
Julien Cabillot
2026-02-26 13:55:13 -05:00
commit b96277064a
8 changed files with 459 additions and 0 deletions

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
qdrant:
image: docker.io/qdrant/qdrant:latest
container_name: mcp_maildir_qdrant
ports:
- "6333:6333" # REST API
- "6334:6334" # gRPC API
volumes:
- ./qdrant_storage:/qdrant/storage:z
restart: unless-stopped
mcp-server:
build:
context: .
dockerfile: pkg/Dockerfile
container_name: mcp_maildir_server
ports:
- "8000:8000" # Expose the MCP HTTP (SSE) server
env_file:
- .env
environment:
# Override Qdrant URL to point to the docker-compose service
- QDRANT_URL=http://qdrant:6333
volumes:
# Mount the source code for hot-reloading (optional)
- ./src:/app/src:ro,z
# Mount the maildir dump as read-only.
# Ensure you set MAILDIR_PATH in your .env file
- ${MAILDIR_PATH:-./maildir_dump}:/path/to/your/maildir/dump:ro,z
depends_on:
- qdrant