From b2f80c436fcdab1fe29f1b2a371149c614ac6215 Mon Sep 17 00:00:00 2001 From: nicoboy Date: Tue, 24 Feb 2026 13:27:02 +0100 Subject: [PATCH] version --- docker-compose.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4959f84 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,61 @@ +version: '3.8' + +services: + # --- L'INTERFACE (La Glue) --- + open-webui: + image: ghcr.io/open-webui/open-webui:main + container_name: open-webui + ports: + - "3000:8080" + environment: + - OLLAMA_BASE_URL=http://ollama:11434 + - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-supersecretkey} + volumes: + - webui_data:/app/backend/data + networks: + - studio-net + restart: always + + # --- LE CERVEAU (LLM) --- + ollama: + image: ollama/ollama:latest + container_name: ollama + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + volumes: + - ollama_data:/root/.ollama + networks: + - studio-net + + # --- LE PREMIER SERVICE AUDIO (Exemple) --- + audio-api: + build: + context: ./services/audio-api # On créera ce dossier juste après + container_name: audio-api + ports: + - "7860:7860" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + volumes: + - ./models:/app/models + - ./outputs:/app/outputs + networks: + - studio-net + +networks: + studio-net: + driver: bridge + +volumes: + webui_data: + ollama_data: \ No newline at end of file