probleme dependances

This commit is contained in:
2026-02-24 16:56:27 +01:00
parent a143e27eea
commit c1f7054088

View File

@ -1,9 +1,10 @@
version: '3.8' version: '3.8'
services: services:
# --- LE PORTIER (Point d'entrée pour tes 20 étudiants) --- # --- LE PORTIER ---
gateway: gateway:
image: nginx:latest image: nginx:latest
container_name: studio-gateway-1
ports: ports:
- "80:80" - "80:80"
volumes: volumes:
@ -12,12 +13,13 @@ services:
- studio-net - studio-net
depends_on: depends_on:
- open-webui - open-webui
- audio-api # Ajouté ici : Nginx attend que l'audio soit prêt
restart: always
# --- L'INTERFACE (Open WebUI) --- # --- L'INTERFACE ---
open-webui: open-webui:
image: ghcr.io/open-webui/open-webui:main image: ghcr.io/open-webui/open-webui:main
container_name: open-webui container_name: open-webui
# On ne publie plus le port 3000 vers l'extérieur, Nginx s'en charge en interne
environment: environment:
- OLLAMA_BASE_URL=http://ollama:11434 - OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-supersecretkey} - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-supersecretkey}
@ -27,7 +29,7 @@ services:
- studio-net - studio-net
restart: always restart: always
# --- LE CERVEAU (Ollama) --- # --- LE CERVEAU ---
ollama: ollama:
image: ollama/ollama:latest image: ollama/ollama:latest
container_name: ollama container_name: ollama
@ -42,29 +44,33 @@ services:
- ollama_data:/root/.ollama - ollama_data:/root/.ollama
networks: networks:
- studio-net - studio-net
restart: always
# --- LE SERVICE AUDIO (Ton API) --- # --- LE SERVICE AUDIO ---
audio-api: audio-api:
build: image: nvcr.io/nvidia/pytorch:23.10-py3 # On utilise une image robuste
context: ./services/audio-api
container_name: audio-api container_name: audio-api
# On laisse le port 7860 ouvert au cas où tu voudrais tester en direct working_dir: /app
# On monte le dossier local pour que le script server.py soit trouvé
volumes:
- ./services/audio-api:/app
- ./models:/app/models
- ./outputs:/app/outputs
# L'astuce : On installe Gradio AVANT de lancer le script
command: >
sh -c "pip install --no-cache-dir gradio faster-whisper && python3 server.py"
ports: ports:
- "7860:7860" - "7860:7860"
deploy: deploy:
resources: resources:
limits:
memory: 32G # 64 Go de VRAM permet d'être large sur la RAM système aussi
reservations: reservations:
devices: devices:
- driver: nvidia - driver: nvidia
count: all count: all
capabilities: [gpu] capabilities: [gpu]
volumes:
- ./models:/app/models
- ./outputs:/app/outputs
networks: networks:
- studio-net - studio-net
restart: always
networks: networks:
studio-net: studio-net: