# GitHub MCP Server - Docker Compose
# For self-hosting on VPS at mcp.techmavie.digital/github
version: '3.8'
services:
mcp-github:
build: .
container_name: mcp-github
restart: unless-stopped
ports:
- "8084:8080"
environment:
- PORT=8080
- HOST=0.0.0.0
- GITHUB_PERSONAL_ACCESS_TOKEN=${GITHUB_PERSONAL_ACCESS_TOKEN:-}
- NODE_ENV=production
- ANALYTICS_FILE=/app/data/github-mcp-analytics.json
volumes:
- analytics-data:/app/data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- mcp-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
mcp-network:
driver: bridge
volumes:
analytics-data: