I have a djanog application. I have created an Docker image and pushed to ECR
My docker image, has an entryscript which runs the
python manage.py migrate
I am planning to have a 4 tasks/containers of DJango running simultaneously
So when each container is getting started, it will run the entrypoint script.
Assume two containers are starting in parallel, each will try to run the entrypoint script. i.e the migrate
So I am thinking this will collide with the database tables creation properly
How to solve this issue