docker-compose.example.yml•720 B
version: '3.8'
services:
mcp-server:
build: .
container_name: mcp-file-git-server
environment:
- PROJECT_ROOT=/workspace
- PORT=3001
- NODE_ENV=production
ports:
- "3001:3001"
volumes:
# IMPORTANT: Change this to your actual project path
- /Users/lachaal/kjr/cursor:/workspace:rw
# Optional: Git credentials for private repos
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh:/root/.ssh:ro
networks:
- n8n-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
n8n-network:
external: true