From 1c151c0e527f49bb24267abb950049e96bfb30c6 Mon Sep 17 00:00:00 2001 From: nicoboy Date: Tue, 24 Feb 2026 17:35:44 +0100 Subject: [PATCH] plus rapide --- docker-compose.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b936d98..7ea7d16 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: