plus rapide
This commit is contained in:
@ -11,7 +11,6 @@ services:
|
|||||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
||||||
networks:
|
networks:
|
||||||
- studio-net
|
- studio-net
|
||||||
# On attend que l'interface ET l'audio soient en état "Healthy"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
open-webui:
|
open-webui:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -54,24 +53,20 @@ services:
|
|||||||
- studio-net
|
- studio-net
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# --- LE SERVICE AUDIO ---
|
# --- LE SERVICE AUDIO (Utilise ton Dockerfile) ---
|
||||||
audio-api:
|
audio-api:
|
||||||
image: nvcr.io/nvidia/pytorch:23.10-py3
|
build:
|
||||||
|
context: ./services/audio-api
|
||||||
|
dockerfile: Dockerfile
|
||||||
container_name: audio-api
|
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:
|
environment:
|
||||||
- NVIDIA_VISIBLE_DEVICES=all
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
volumes:
|
volumes:
|
||||||
- ./services/audio-api:/app
|
- ./services/audio-api:/app
|
||||||
- ./models:/app/models
|
- ./models:/app/models
|
||||||
- ./outputs:/app/outputs
|
- ./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:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|||||||
Reference in New Issue
Block a user