From af1e720e1f206c5ac04ada830a4ab22e6695fca9 Mon Sep 17 00:00:00 2001 From: Xavier Date: Tue, 6 Oct 2026 14:50:30 +0200 Subject: [PATCH] gros plantage --- Dockerfile | 17 ++++++++++++++++- backend/docker-compose.yml | 25 +++++++++++++++++++------ 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 536a80b..adee702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,20 @@ FROM python:3.13-slim + WORKDIR /app + +# Installation des dépendances système (LibreOffice, etc.) +RUN apt-get update && apt-get install -y \ + libreoffice \ + curl \ + && rm -rf /var/lib/apt/lists/* + +# Copie et installation des dépendances Python COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5001", "--reload"] \ No newline at end of file + +# Copie de tout le code source de la racine +COPY . . + +EXPOSE 5001 + +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5001"] \ No newline at end of file diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml index 8b295c0..ba5e265 100644 --- a/backend/docker-compose.yml +++ b/backend/docker-compose.yml @@ -1,11 +1,24 @@ services: aethas38-core: - build: ./backend - container_name: aethas38-core + build: . + container_name: aethas38-multi-ia + restart: unless-stopped ports: - "5002:5001" + environment: + - TZ=Europe/Paris + env_file: + - .env + extra_hosts: + - host.docker.internal:host-gateway + command: uvicorn main:app --host 0.0.0.0 --port 5001 --reload volumes: - - ./backend:/app - - ./frontend:/frontend - - ./sessions:/sessions - restart: unless-stopped \ No newline at end of file + - /mnt/stockage_raid/AppData/MULTI-IA-AETHAS38/sessions:/app/sessions + - /mnt/stockage_raid/AppData/MULTI-IA-AETHAS38/logs:/app/logs + - /mnt/stockage_raid/AppData/MULTI-IA-AETHAS38/history.json:/app/history.json + networks: + - dockge-network + +networks: + dockge-network: + external: true \ No newline at end of file