version: '3.8'
services:
time-mcp:
build:
context: .
dockerfile: Dockerfile
container_name: time-mcp
ports:
- "10010:10010"
environment:
- TRANSPORT=http
- PORT=10010
- HOST=0.0.0.0
- MCP_PATH=/mcp
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:10010/mcp', (r) => process.exit(r.statusCode >= 200 && r.statusCode < 500 ? 0 : 1)).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s