Update Docker configuration for Prisma migrations: Comment out migrations volume in docker-compose.yml for production use, and add checks in Dockerfile to verify the presence of migrations during build and entrypoint execution.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 14s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 14s
This commit is contained in:
@@ -44,7 +44,9 @@ services:
|
||||
volumes:
|
||||
# Persist uploaded images (avatars and backgrounds)
|
||||
- ${UPLOADS_PATH:-./public/uploads}:/app/public/uploads
|
||||
- ./prisma/migrations:/app/prisma/migrations
|
||||
# Migrations: décommenter uniquement en développement local pour modifier les migrations sans rebuild
|
||||
# En production, les migrations sont incluses dans l'image Docker
|
||||
# - ./prisma/migrations:/app/prisma/migrations
|
||||
depends_on:
|
||||
got-postgres:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user