plus rapide

This commit is contained in:
2026-02-24 17:35:44 +01:00
parent c26b2b8dbb
commit 1c151c0e52

View File

@ -11,7 +11,6 @@ services:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- studio-net
# On attend que l'interface ET l'audio soient en état "Healthy"
depends_on:
open-webui:
condition: service_healthy
@ -54,24 +53,20 @@ services:
- studio-net
restart: always
# --- LE SERVICE AUDIO ---
# --- LE SERVICE AUDIO (Utilise ton Dockerfile) ---
audio-api:
image: nvcr.io/nvidia/pytorch:23.10-py3
build:
context: ./services/audio-api
dockerfile: Dockerfile
container_name: audio-api
working_dir: /app
# On retire le pip install d'ici car il est déjà dans le Dockerfile
command: python3.11 server.py
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./services/audio-api:/app
- ./models:/app/models
- ./outputs:/app/outputs
# Correction de la commande pour s'assurer que les dossiers existent
command: >
sh -c "mkdir -p models outputs &&
pip install --no-cache-dir gradio faster-whisper &&
python3 server.py"
ports:
- "7860:7860"
deploy:
resources:
reservations: