From 09f760646ecd83f4226328a0f88113af8c153aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C9=A7=CF=83=E2=84=93=CF=83?= Date: Tue, 2 Dec 2025 18:06:52 +0100 Subject: [PATCH] fix: docker compose --- Dockerfile | 4 ++-- docker-compose.yml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 467e711..b4a033d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,8 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . # Exposer le port -EXPOSE 8000 +EXPOSE 3000 # Commande pour démarrer l'application -CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3000"] diff --git a/docker-compose.yml b/docker-compose.yml index 8ecc498..fbb1a20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,10 +2,11 @@ version: '3.8' services: api: - build: . - container_name: anime_tracker_api + build: + context: . + dockerfile: Dockerfile ports: - - "8012:8000" + - "3000" environment: - DATABASE_URL=${DATABASE_URL:-postgresql://user:password@host:5432/anime_tracker} - SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production-min-32-characters-long}