DEV Community

Discussion on: What's the proper way to run a DotNet ef migrations when deploying with Docker

Collapse
 
chekkan profile image
Harish Babu

I have blogged about entity framework core database migration although on AWS ECS. But, I assume that something similar can be applied to other container orchestration platforms.

Collapse
 
dcruz1990 profile image
Dennis Quesada Cruz

Thanks Harish! Im going to try that way, using a extra Dockerfile that runs the migration, the key here is wait for PostgreSQl and then runs, otherwise allways fails. Regards.