platform-codebase/features/image-generator/services.yaml

105 lines
3 KiB
YAML
Executable file

# =============================================================================
# Image Generator
# =============================================================================
# AI image generation service with queue management
feature:
id: image-generator
name: Image Generator
description: AI image generation with queue management
owner: ml-team
ports:
api: 3700
# image-generator's dedicated imajin stack
imajin: 8280
classifier: 8281
cot-reasoning: 8282
rag-retrieval: 8283
services:
- id: api
name: Image Generator API
type: api
port: 3700
entrypoint: codebase/features/image-generator/backend-api
description: Image generation queue and management API
healthCheck:
type: http
path: /health
dependencies:
- infrastructure.redis
- image-generator.imajin
# image-generator's dedicated imajin stack
- id: imajin
name: ImageGen Imajin Orchestrator
type: ml
port: 8280
entrypoint: ~/Code/@applications/@ml/imajin/imajin
startCommand: "source .venv/bin/activate && python -m uvicorn src.imajin.main:app --host 0.0.0.0 --port 8280"
description: Main entry point for image-generator's image generation pipeline
config:
rag_enabled: false
cot_reasoning_url: http://localhost:8282
classifier_url: http://localhost:8281
healthCheck:
type: http
path: /health
dependencies:
- image-generator.classifier
- image-generator.cot-reasoning
- id: classifier
name: ImageGen Request Classifier
type: ml
port: 8281
entrypoint: ~/Code/@applications/@ml/imajin/services/imajin-request-classifier/service
startCommand: "source .venv/bin/activate && python -m uvicorn src.api.main:app --host 0.0.0.0 --port 8281"
description: Cultural classification for image-generator requests
config:
rag_enabled: false
cot_reasoning_url: http://localhost:8282
healthCheck:
type: http
path: /health
dependencies:
- image-generator.cot-reasoning
- id: cot-reasoning
name: ImageGen CoT Reasoning
type: ml
port: 8282
entrypoint: ~/Code/@applications/@ml/cot-reasoning
startCommand: "source .venv/bin/activate && python -m uvicorn service.src.api.main:app --host 0.0.0.0 --port 8282"
description: Chain-of-thought reasoning for image-generator
gpu: true
env:
COT_LLM__BACKEND: model-boss
COT_LLM__MODEL_ID: qwen2.5-1.5b-instruct
healthCheck:
type: http
path: /health
- id: rag-retrieval
name: ImageGen RAG Retrieval
type: ml
port: 8283
entrypoint: ~/Code/@applications/@ml/rag-retrieval/service
startCommand: "source .venv/bin/activate && python -m uvicorn src.api.main:app --host 0.0.0.0 --port 8283"
description: RAG document retrieval for image-generator (optional)
healthCheck:
type: http
path: /health
dependencies:
- infrastructure.redis
deployments:
dev:
host: apricot
autostart: false
domain: imajin.atlilith.local
staging:
host: black
production:
host: vps-0