services: api: build: . ports: - "8675:8080" environment: - DATABASE_URL=sqlite+aiosqlite:///./ai.db volumes: - ./data:/app/data - ./config.yaml:/app/config.yaml:ro depends_on: - ollama restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 ollama: image: ollama/ollama:latest volumes: - ./ollama:/root/.ollama restart: unless-stopped command: serve healthcheck: test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"] interval: 30s timeout: 10s retries: 3 mcp: build: context: . dockerfile: mcp/Dockerfile command: python skills.py ports: - "3000:3000" environment: - SKILLS_API_URL=http://api:8080 - MCP_TRANSPORT=sse - MCP_PORT=3000 depends_on: - api restart: unless-stopped