docker-compose.yml•560 B
version: '3.8'
services:
mcp-server:
build: .
ports:
- "8000:8000"
environment:
- LOG_LEVEL=INFO
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
restart: unless-stopped
# Optional: nginx reverse proxy for production
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- mcp-server
profiles:
- production