version: '3.8'
services:
mcp-server:
build:
context: .
dockerfile: Dockerfile
container_name: 42crunch-mcp-server
ports:
- "8000:8000"
environment:
# Pass 42C_TOKEN from host environment or .env file
- 42C_TOKEN=${42C_TOKEN}
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- mcp-network
networks:
mcp-network:
driver: bridge