HomeVideoPrepare a Django app for Deployment using Docker

Prepare a Django app for Deployment using Docker [TUTORIAL]


How to configure a Django project to run in Docker using uWSGI for a production deployment.

Links:
– Starter project: https://github.com/LondonAppDeveloper/demo-django-hello-world-starter
– usgi_params file: https://uwsgi-docs.readthedocs.io/en/latest/Nginx.html#what-is-the-uwsgi-params-file
-Advanced course – DevOps Deployment Automation with Terraform, AWS and Docker: https://londonappdeveloper.thinkific.com/courses/devops-deployment-automation-terraform-aws-docker

– Finished code: https://github.com/LondonAppDeveloper/demo-django-docker-nginx-prod

00:00 – Introduction
00:54 – Open Hello World starter project
01:31 – Create a Dockerfile for the project
04:55 – Copy contents of app to the Dockerfile
06:05 – Set up new folders for static files
07:25 – Create a new user to run application
09:52 – Modify requirements.txt to add the uWSGI server
14:40 – Set up Docker-compose file to run application using Docker on local machine
17:30 – Test our application
18:42 – Create our NGINX proxy
22:10 – Create the Dockerfile for our NGINX proxy
25:12 – Test building our file
25:38 – Customise the configuration of our Django app
31:35 – Create a new Dockerfile in the root of our project

COURSES I TEACH
• Build a Backend REST API with Python & Django BEGINNER: https://www.udemy.com/course/django-python/?referralCode=3B849741B22196721D94
• Build a Backend REST API with Python & Django, Django REST Framework and Docker using Test Driven Development (TDD) ADVANCED: https://www.udemy.com/course/django-python-advanced/?referralCode=D9B14BE6FBA4FB2DB06D
• DevOps Deployment Automation with Terraform, AWS and Docker: https://londonappdeveloper.thinkific.com/courses/devops-deployment-automation-terraform-aws-docker

OTHER VIDEOS YOU MIGHT LIKE:
○ BUILD A BACKEND REST API with Python, Django REST Framework, Django, Vagrant & VirtualBox – https://youtu.be/3ZcoUOb5prk
○ BUILD A BACKEND REST API with Python, Django & Test Driven Development – https://youtu.be/4gw6dTA8jaM
○ CREATING A DJANGO PROJECT with Docker – https://youtu.be/KN8wuFi2RXM
○ Setting up PostgreSQL database with a Django Docker application – https://youtu.be/610jg8bK0I8
○ Dockerizing a Django REST Framework Project – https://youtu.be/Y_rh-VeC_j4
○ THE 4 BEST WAYS TO DEPLOY A DJANGO APPLICATION – https://youtu.be/IoxHUrbiqUo

View it at Youtube

Most Popular