chore: exécuter les migrations versionnées en recette
All checks were successful
Validation applicative / TypeScript, tests et build (push) Successful in 1m55s
All checks were successful
Validation applicative / TypeScript, tests et build (push) Successful in 1m55s
This commit is contained in:
@@ -21,6 +21,25 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
start_period: 30s
|
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)
|
# Application (Backend + Frontend)
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user