# Docker Compose - DEFAULT (Production)
# This file uses the pre-built image from GitHub Container Registry.
# For local development/building from source, use docker-compose.build.yml
#
# Quick start:
# docker compose pull # Get latest image
# docker compose up -d # Start server
services:
mcp-server:
image: ghcr.io/cloonix/mymcp:latest
container_name: mcp-server
restart: unless-stopped
environment:
# Server Configuration
MCP_SERVER_HOST: 0.0.0.0
MCP_SERVER_PORT: 8000
# Cache Settings
CACHE_ENABLED: true
CACHE_TTL: 3600
CACHE_MAX_SIZE: 100
CACHE_DIR: /app/cache
# Rate Limiting
RATE_LIMIT_ENABLED: true
RATE_LIMIT_REQUESTS: 100
RATE_LIMIT_WINDOW: 60
# Optional YouTube Settings (uncomment to use)
# YOUTUBE_COOKIES: /app/cookies.txt
# YOUTUBE_PROXY_HTTP: http://proxy:8080
# YOUTUBE_PROXY_HTTPS: https://proxy:8080
ports:
- "8000:8000"
volumes:
# Persistent cache directory
- ./cache:/app/cache
# Uncomment if using YouTube cookies
# - ./cookies.txt:/app/cookies.txt:ro
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
security_opt:
- no-new-privileges:true
read_only: true
cap_drop:
- ALL
tmpfs:
- /tmp