docker-compose.yml•784 B
version: '3.8'
services:
mcp-server:
build:
context: .
dockerfile: Dockerfile
container_name: solid-mcp-server
ports:
- "8092:8092"
environment:
- BACKEND_URL=http://host.docker.internal:8090
- PORT=8092
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:8092/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Resource limits for handling high traffic
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M