From 8158a6b9afe0d5fa06a8de2f3520318ee7c775dd Mon Sep 17 00:00:00 2001 From: Manus Deployment Date: Wed, 9 Sep 2026 08:31:54 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20ex=C3=A9cuter=20les=20migrations=20ver?= =?UTF-8?q?sionn=C3=A9es=20en=20recette?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 2c9b2b5..06262ba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,25 @@ services: retries: 5 start_period: 30s + # ============================================================ + # Migration versionnée (lancée explicitement avec le profil migration) + # ============================================================ + demat-facturation-migrate: + build: + context: . + dockerfile: Dockerfile + target: builder + command: ["./node_modules/.bin/drizzle-kit", "migrate"] + depends_on: + demat-facturation-db: + condition: service_healthy + environment: + DATABASE_URL: mysql://root:demat_facturation_db_pass_2026@demat-facturation-db:3306/gestion_facturation + networks: + - demat-facturation-internal + profiles: ["migration"] + restart: "no" + # ============================================================ # Application (Backend + Frontend) # ============================================================