Django Docker Deployment with HTTPS using Letsencrypt

preview_player
Показать описание

00:10 - Deploy to AWS using Docker and Docker compose card link
01:20 - Requirements
02:07 - Architecture we’re going to build
04:32 - Stages of the deployment (summary)
05:45 - Create a new project on GitHub
06:55 - Setup a basic Django project using Docker and Docker Compose
12:55 - Create a Docker Compose configuration
15:14 - Create our project
18:28 - Create a basic Django app inside our project
22:38 - Setup NGINX
34:11 - Add options SSL configurations
35:47 - Add uWSGI params
36:38 - Create a run script to run our NGINX proxy
44:16 - Create a new Docker file
47:58 - Add certbot image
53:51 - Create a Docker file for our certbot
55:33 - Configure our Django app
59:24 - Create our deployment Docker Compose
01:07:04 - Create a basic configuration file
01:08:12 - Create a server
01:14:03 - Install Docker Compose
01:17:01 - Generate SSH key on the server
01:23:27 - Generate initial SSH certificates
01:29:58 - Handle auto-renewal of SHH certificates

Music: Pray by Anno Domini Beats
Рекомендации по теме
Комментарии
Автор

Dear Mark. I rarely leave comments, but I have to tell you that I've learned a tremendous amount from your videos over the last couple of weeks. Thank you!

robtreharne
Автор

have been waiting for this tutorial tbh..thanks

olorunsholamatins
Автор

Thanks man, it’s greatest video which I saw

bishkek
Автор

Yet another awesome video. I managed to apply ssl certificate to my dockerized project successfully. This is only the second video I watch on this channel and I'm really hooked, I learned so much already. I love the way the videos are very well presented and explained plus the very practical content, really awesome work. You might wanna create a course on Udemy for django development with docker man there's nothing there, we'll definitely love it. I've just found out you already have courses there I'm definitely gonna get the one on building REST API. Thanks a lot and keep up the great work.

metalmlover
Автор

Please make a video on deployment in any other VPS.

TanvirAhmed-urkr
Автор

I just went through the whole thing but deployed on vultr instead of aws. Everything works fine until you run it on the server and it fails at the nc command. It says nc: bad address 'proxy'. So I'm wondering what proxy is referring to? If i do a docker container ls, nothing has the name proxy. The containers are called django-https_proxy and django-https_app

belgian_groenendael
Автор

Great content . You're my favorite Django tutor, and the only teacher from whom I've bought a course. I highly recommend your courses. I've learned a lot from you, but I still struggle with testing. Could you consider creating a video that demonstrates creating tests and explaining the differences between types of tests, such as integration and unit tests? I would greatly appreciate it.

yahyamlaouhi
Автор

Hey Mark, Can you point some advantages for this approach of implementing HTTPs rather that using let's say heroku? I deployed app from this tutorial on heroku and I didn't do anything and there is HTTPs out of the box.

Wlodecku
Автор

Heyy, I am tring to achieve the same functionality with MERN stack, but not able to do so, please guide

guptaashwanee
Автор

static files does not works, please how I can fixed?. Thank you for sharing your skill.

JuanitoOrtega
Автор

I am facing this error while running "docker-compose -f docker-compose.deploy.yml run --rm certbot /opt/certify-init.sh"

exec /opt/certify-init.sh: no such file or directory

yadhurajmageshkumar
Автор

Hi Mark,
I followed this tutorial but i have an issue. I got certificate succesfully. After i run docker compose up command, every container up but i got this error certbot_1 exited with code 0 and i cannot certbot container up again, everytime same error. When i open my website from browser it says your connection is not secure. How can i fix this issue ? please help me.
Thank you

muhammedozkan
Автор

Failed to build uWSGI
52.48 ERROR: Could not build wheels for uWSGI, which is required to install pyproject.toml-based projects. I have a problem installing uWSGI. :(

wilbertmc
Автор

Thank you very much for making this tutorial.

ultraenergy
Автор

Nicely explained SSL certificate topic 🎉

michawilczek
Автор

Hey Mark! Can you please make a video and give us some suggestions on becoming an excellent developer? You are truly awesome!

andrewchen
Автор

what if we're using like in the other tutorial? Or it's not necessary to use the unprivileged version?

ZactarZero
Автор

Hi Mark.
Do you have a paid video course showing how to code a Django project (whether project is an API or not) and elaborate the CI/CD/Delivery in staging and production environments?
We are struggling under that scenario.
A video where you can show how to create a walking skeleton for project and releases (CI/CD/Delivery).
Thanks.

tatemo_labs
Автор

I try to merge that one with your other tuto (Deploying Django with Docker Compose), it would have been great if this tuto was based on the first one, anyway, it is still very helpfull.

emailvinz
Автор

Hello, Thank's for the Video, I don't know why show this error "Waiting for proxy... nc: bad address 'proxy' "

Httory