- install dependencies (requirements.txt)
- run migrate everytime the container starts
- use uwsgi to run the application in http mode
the docker-compose stack will include MySQL 5.7. Each EC2 will run the web application and database.
- create docker-compose.yml
- modify the application to get the DB credentials from ENV instead of hardcoded
- Inject the necessary DB information and credentials to connect to the DB