Spaces:
Running
Running
| ```yaml | |
| version: '3.8' | |
| services: | |
| # ComfyUI pour la génération d'images/vidéos | |
| comfyui: | |
| image: ghcr.io/comfyanonymous/comfyui:latest | |
| container_name: comfyui-rosalinda | |
| ports: | |
| - "8188:8188" | |
| volumes: | |
| - ./comfyui-config:/workspace/comfyui | |
| - ./models:/workspace/ComfyUI/models | |
| - ./outputs:/workspace/ComfyUI/output | |
| environment: | |
| - NVIDIA_VISIBLE_DEVICES=all | |
| - DOCKER=true | |
| deploy: | |
| resources: | |
| reservations: | |
| devices: | |
| - driver: nvidia | |
| count: all | |
| capabilities: [gpu] | |
| restart: always # Toujours redémarrer | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8188"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| # Serveur Rosalinda (Node.js) | |
| rosalinda: | |
| build: ./rosalinda-server | |
| container_name: rosalinda-server | |
| ports: | |
| - "3001:3001" | |
| - "3002:3002" # Port supplémentaire pour l'interface | |
| environment: | |
| - COMFY_URL=http://comfyui:8188 | |
| - NODE_ENV=production | |
| - PORT=3001 | |
| volumes: | |
| - ./outputs:/app/outputs | |
| - ./logs:/app/logs | |
| depends_on: | |
| comfyui: | |
| condition: service_healthy | |
| restart: always # Toujours redémarrer | |
| command: sh -c "node server.js & node health-monitor.js" | |
| # Interface Web | |
| frontend: | |
| build: ./frontend | |
| container_name: rosalinda-frontend | |
| ports: | |
| - "8080:80" | |
| depends_on: | |
| - rosalinda | |
| restart: always | |
| # IA Super Intelligence (Python) | |
| super-ia: | |
| build: ./super-ia | |
| container_name: infinite-ia | |
| volumes: | |
| - ./super-ia/output:/app/output | |
| - ./super-ia/logs:/app/logs | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| environment: | |
| - ROSALINDA_URL=http://rosalinda:3001 | |
| - PYTHONUNBUFFERED=1 | |
| depends_on: | |
| - rosalinda | |
| restart: always | |
| command: python infinite-ia.py | |
| # Base de données pour suivre les générations | |
| redis: | |
| image: redis:alpine | |
| container_name: rosalinda-redis | |
| ports: | |
| - "6379:6379" | |
| volumes: | |
| - redis-data:/data | |
| restart: always | |
| # Monitoring | |
| monitor: | |
| image: louislam/uptime-kuma:latest | |
| container_name: uptime-kuma | |
| ports: | |
| - "3003:3001" | |
| volumes: | |
| - uptime-kuma-data:/app/data | |
| restart: always | |
| volumes: | |
| redis-data: | |
| uptime-kuma-data: | |
| ``` |