version: '3.8' services: ontology-firewall: build: context: . dockerfile: Dockerfile container_name: ontology-firewall ports: - "${MCP_PORT:-8000}:8000" environment: - ONTOLOGY_PATH=${ONTOLOGY_PATH:-ontologies/sales_domain.owl} - MCP_HOST=0.0.0.0 - MCP_PORT=8000 - LOG_LEVEL=${LOG_LEVEL:-INFO} - LOG_FORMAT=${LOG_FORMAT:-json} - ENABLE_CACHING=${ENABLE_CACHING:-true} volumes: - ./ontologies:/app/ontologies healthcheck: test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/health').raise_for_status()"] interval: 30s timeout: 10s retries: 3 start_period: 10s restart: unless-stopped