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 containers run nginx servers and will serve django web applications
Postgresql container maintains the database. uwsgi containers connect to
postgresql container to access database. Its better to use database
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.
Architecture: Docker Registry Server
instance) of uwsgi image
git push git pull
New uwsgi image
with updated code
Commit and save
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