# LegalSync local development stack (mirrors 70-mlops-governance observability) version: '3.8' services: legalsync: build: . ports: - "8000:8000" environment: - PORT=8000 - DATAROBOT_API_KEY=${DATAROBOT_API_KEY} - GROQ_API_KEY=${GROQ_API_KEY} volumes: - ./config:/app/config:ro healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s # Secondary Brain (50-intelligence quality) lighthouse: image: patrickhulce/lhci-client depends_on: [legalsync] command: lhci autorun --collect.url=http://legalsync:8000 --config=./lighthouserc.json volumes: - ./:/app - ./reports:/app/reports # Observability (70-mlops-governance) prometheus: image: prom/prometheus ports: ["9090:9090"] volumes: ["./observability/prometheus.yml:/etc/prometheus/prometheus.yml"] grafana: image: grafana/grafana ports: ["3000:3000"] depends_on: [prometheus]