# Service Descriptor - Platform Marketing API
# Generado automáticamente durante migración

service:
  name: marketing-api
  type: backend_api
  framework: express
  runtime: node
  version: "20"
  description: "API de plataforma de marketing y contenido"
  owner_agent: NEXUS-BACKEND

repository:
  name: workspace-v1
  path: projects/platform_marketing_content/apps/backend
  main_branch: main

ports:
  internal: 3110
  registry_ref: projects.platform_marketing.services.api
  protocol: http

domains:
  registry_ref: projects.platform_marketing.domains
  overrides:
    local: api.marketing.localhost

database:
  registry_ref: databases.platform_marketing
  role: runtime
  schemas:
    - public
    - content
    - campaigns

docker:
  dockerfile: Dockerfile
  context: .
  networks:
    - marketing_${ENV:-local}
    - infra_shared
  labels:
    traefik:
      enable: true
      rule: "Host(`api.marketing.localhost`)"

dependencies:
  external:
    - name: minio
      purpose: "Almacenamiento de contenido"
      port: 9000
    - name: comfyui
      purpose: "Generación de contenido"
      port: 8188

healthcheck:
  path: /health
  interval: 30s
  timeout: 10s
  retries: 3

metadata:
  created: "2025-12-26"
  updated: "2025-12-26"
  maintainers:
    - tech-leader
  status: active
