Spaces:
Running
Running
| version: "3.9" | |
| services: | |
| # βββ Node.js Orchestration Service ββββββββββββββββββββββββββ | |
| node-service: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.node | |
| ports: | |
| - "3000:3000" | |
| environment: | |
| - NODE_ENV=development | |
| env_file: | |
| - .env | |
| depends_on: | |
| - python-service | |
| - redis | |
| restart: unless-stopped | |
| # βββ Python AI Profiling Service ββββββββββββββββββββββββββββ | |
| python-service: | |
| build: | |
| context: ./src/profiling/python-service | |
| dockerfile: Dockerfile.python | |
| ports: | |
| - "8000:8000" | |
| env_file: | |
| - .env | |
| volumes: | |
| - ./src/profiling/python-service:/app | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| # βββ Redis (queue + cache) βββββββββββββββββββββββββββββββββββ | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - "6379:6379" | |
| restart: unless-stopped | |
| # βββ Ollama (local LLM) ββββββββββββββββββββββββββββββββββββββ | |
| # Comment out if running Ollama natively on host | |
| # ollama: | |
| # image: ollama/ollama:latest | |
| # ports: | |
| # - "11434:11434" | |
| # volumes: | |
| # - ollama_data:/root/.ollama | |
| # restart: unless-stopped | |
| volumes: | |
| ollama_data: | |