Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

dkr_django_slides

374 views

Published on

  • Login to see the comments

dkr_django_slides

  1. 1. Containerizing Django Web applications with Docker A presentation by Gladson V Manuel https://in.linkedin.com/in/gladsonvm
  2. 2. Architecture
  3. 3. ● Django/Uwsgi: This container holds the code and configuration together with django and its dependencies (pypi-pip packages). More than one containers with same configuration can be used to handle failures. ● Nginx Nginx containers run nginx servers and will serve django web applications using uwsgi. Containers/Components
  4. 4. Containers/Components ● Postgresql Postgresql container maintains the database. uwsgi containers connect to postgresql container to access database. Its better to use database replication also. It is recommended to save database file outside database since periodic commits and image creations are required to save changes in database if database file is kept inside container.
  5. 5. Architecture: Docker Registry Server UWSGI docker image nginx docker image Container(Running instance) of uwsgi image Git Server git push git pull New uwsgi image with updated code from git Commit and save running container
  6. 6. Components/Images ● Uwsgi Uwsgi container contains django code and all dependencies for web application. Whenever there is a change in code, changes are pulled from git server to running instance uwsgi container. ● Commit and Save Changes in running containers are committed and saved to another new image. After verifying that the image will work fine without any issues, this new image will be used to create further containers and run django application in it. This same procedure can be applied to nginx container also.
  7. 7. Thank you

×