Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 642 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 642 Bytes

1 : Create the DockerFile to build the Django application container

  • install dependencies (requirements.txt)
  • run migrate everytime the container starts
  • use uwsgi to run the application in http mode

2: Run the container using docker-compose on each EC2 instances

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