services: integrachat: build: context: . dockerfile: Dockerfile container_name: integrachat ports: - "7860:7860" # Gradio UI - "8000:8000" # FastAPI - "8900:8900" # MCP Server environment: - API_PORT=8000 - MCP_PORT=8900 - GRADIO_PORT=7860 - DOCKER_CONTAINER=1 # Add your environment variables here or use env_file # - SUPABASE_URL=${SUPABASE_URL} # - SUPABASE_SERVICE_KEY=${SUPABASE_SERVICE_KEY} # - GROQ_API_KEY=${GROQ_API_KEY} # - OLLAMA_BASE_URL=${OLLAMA_BASE_URL} env_file: - .env # Optional: load from .env file if it exists volumes: # Optional: mount logs directory for persistence - ./logs:/app/logs restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s