Nginx Reverse Proxy | Django Deployment | Docker | Staticfiles

  Рет қаралды 42,792

Very Academy

Very Academy

2 жыл бұрын

The Docker Nginx Mastery Series focuses on building and administrating Nginx services. In this tutorial we focus on create a reverse proxy, deploying a Django application with Gunicorn.
Repository:
github.com/veryacademy/yt-ngi...

Пікірлер: 55
@majestif
@majestif 2 жыл бұрын
Awesome series! Looking forward to the next parts, especially on caching. Thanks for your videos.
@veryacademy
@veryacademy 2 жыл бұрын
Caching up next, won't be too long. Its bank holidays here in UK so got family and what not, try to get the next instalment out on Tuesday/Wednesday
@edwinguevara8803
@edwinguevara8803 2 жыл бұрын
Thank you so much! This video tutorial has been very useful and easy to understand. Kudos!
@sumit1234567891011
@sumit1234567891011 Жыл бұрын
After wasting 2 days, I found this video it solved my problem. Thanks a lot.
@veryacademy
@veryacademy Жыл бұрын
Glad to hear!
@AndresGonzalez-hn6mz
@AndresGonzalez-hn6mz 2 жыл бұрын
Thank you so much for this video. I have watched so many hours on nginx looking for a solution to an error, and you sir explain things so well and thoroughly, that better than fixing, I understood more deeply and was able to troubleshoot.
@veryacademy
@veryacademy 2 жыл бұрын
Glad it helped
@_mrmark
@_mrmark 6 ай бұрын
Спасибо. Ура, наконец-то у меня получилось подключить статику!
@samucancld
@samucancld 2 жыл бұрын
best video in the subject by FAR, thanks man
@koala280
@koala280 2 жыл бұрын
This video just broke my 5 hours of trial and error (or only error) streak. Tank you soo much. If somebody else got a problem with installing mysqlclient just add following line in Dockerfile of the django app between copy requirements and pip install requirements: RUN apk add gcc musl-dev mariadb-connector-c-dev
@akira_asahi
@akira_asahi Жыл бұрын
Thank you for the video. For me this gunicorn / nginx thing is too much. You made it much easier to understand.
@gailleamolong9149
@gailleamolong9149 Жыл бұрын
underrated channel ngl
@MarkusEicher70
@MarkusEicher70 8 ай бұрын
Hi there. Many thanks for this demonstration on how to setup nginx as a proxy for Django. 🤛 I appreciate your content and I'm looking forward to the next videos I want to optimize this for production use for my personal websites.
@takharamazanpolat7610
@takharamazanpolat7610 Жыл бұрын
Thank you, very clear explanation!
@jorgec8323
@jorgec8323 2 жыл бұрын
Thank you for always doing great content, this is insanely good. I am always surprised by the quality of this content, I wonder will you ever do anything related to Django and Caching?
@veryacademy
@veryacademy 2 жыл бұрын
Intro to Caching is the next tutorial with Nginx. I will then turn to a run of tutorials about deployment with Nginx and Django on DigitalOcean. Thank you for reminding me about Django Caching! I have a list of well over 100 Django tutorials, I will get it done eventually.
@jorgec8323
@jorgec8323 2 жыл бұрын
@@veryacademy You are just amazing!
@veryacademy
@veryacademy 2 жыл бұрын
Thank you Jorge, we all are amazing!
@sonnix31
@sonnix31 Жыл бұрын
Thank you sir, very much appreciated.
@ajmalmuhammed490
@ajmalmuhammed490 Жыл бұрын
this is really great tutorial, could you please include react production build serving through nginx
@farhadshakibaca
@farhadshakibaca 2 жыл бұрын
Thank you so much for this video
@annahri
@annahri 2 жыл бұрын
You deserve more subs and views!
@veryacademy
@veryacademy 2 жыл бұрын
Thank you!
@ailuros_
@ailuros_ 2 жыл бұрын
Thanks for subtitling the video :)
@veryacademy
@veryacademy 2 жыл бұрын
No problem
@gurhangoktas6618
@gurhangoktas6618 Жыл бұрын
Thanks you for videos. They are very helpfull for learning . I have a question. Have you any video or example for django - docker - gunicron - nginx about internal redirect for secure media files. I cant able to publish my secure media files with this setup and react frontend. If you havent create any content yet about that , it would be very helpfull. Thank you for i learned everything from you.
@alessandroscimone5463
@alessandroscimone5463 2 жыл бұрын
really fantastic!
@veryacademy
@veryacademy 2 жыл бұрын
Thanks a lot!
@pietroaminpuddu7388
@pietroaminpuddu7388 2 жыл бұрын
Securing the containerized Django application (SSL) and deploying it would be a great continuation.
@veryacademy
@veryacademy 2 жыл бұрын
Next up is Django with secure link example then ssl probably with digital ocean. Then we move to api gateway
@pietroaminpuddu7388
@pietroaminpuddu7388 2 жыл бұрын
​@@veryacademy Just a question. Is out there some guide for SSL and Deploying which follows the project structure you are using in this video? Thanks a lot :)
@uh.d959
@uh.d959 Жыл бұрын
thank you!!!! Files that didn't work with nginx are being read.
@MDAbdurRahimcs50
@MDAbdurRahimcs50 Жыл бұрын
Great video on the internet, I learn a lot, but I want to add SSL to my application, can you make a video on How to add SSL?
@DM-ww9wf
@DM-ww9wf Жыл бұрын
Hi Zander, 2 questions... - I noticed @21:00 at the top of your docker-compose file there's no " version: 'x.y' '" which I thought was required - assuming its not and just best practice? If this is not entered what is the default, latest? - Using the code ( @21:00 ) that is working in your video, I get an error "Additional property env_file is not allowed"... I have the latest installation of docker and at the time of this comment the video is 6 months old. Any idea why this is occurring? Thanks
@DM-ww9wf
@DM-ww9wf Жыл бұрын
Q1 - still relevant. Q2 - my bad... improper indenting caused this error.
@md5alx
@md5alx Жыл бұрын
Thank you. SSL is work ??
@biscotty6669
@biscotty6669 Жыл бұрын
docker-compose build is failing with 'module 'dotenv' has no attribute 'dotenv_values''" . I can run the django app manually and it spins up fine. But docker-compose gives that error.
@MartinMoll-hw4dn
@MartinMoll-hw4dn Ай бұрын
Hi! Congrats for the video and one question: this solution ensures that a django web serverver application can execute requests to third party servers like google firebase auth? Thanks
@ibrahimoglu
@ibrahimoglu 2 жыл бұрын
👍
@veryacademy
@veryacademy 2 жыл бұрын
👍
@miguelvasquez9849
@miguelvasquez9849 8 ай бұрын
Is it recommended that Django project files and static files be in a volume?
@user1491
@user1491 5 ай бұрын
Oops, after I use nginx according to these instructions for the static files, the messages via Celery no longer work.
@veryacademy
@veryacademy 5 ай бұрын
Hmm, sorry, I can't help with this; let me know if you find out what the problem is.
@user1491
@user1491 5 ай бұрын
@@veryacademy I found out that when I access the app via nginx, the async messages from Redis are not returned. Redis blocks them. If I have defined a port and access the app via this port bypassing nginx, there are no problems. I'll have a look at ....
@user1491
@user1491 5 ай бұрын
@@veryacademy I found out that when I access the app via nginx, the async messages from Redis are not returned. Redis blocks them. If I have defined a port and access the app via this port bypassing nginx, there are no problems. I'll have a look at .... I'm using Channels ...
@user1491
@user1491 5 ай бұрын
I have noticed that nginx does not forward the messages from channels-redis. If I also create a port in the yml file and bypass nginx, I receive my messages from channels-redis, but not via port 80 (nginx). Sorry, I use channels-redis, not celery ...
@brunomachado8571
@brunomachado8571 2 жыл бұрын
Awesome tutorial! One question :) after I have everything up and running I notice I dont know the pass and user name you have for enter django admin page. I watch the tutorial more than once and you dont refer it anywhere...could you please tell what are those? thank you
@veryacademy
@veryacademy 2 жыл бұрын
User: admin Pass: admin
@veryacademy
@veryacademy 2 жыл бұрын
If not let me know, try admin and password
@brunomachado8571
@brunomachado8571 2 жыл бұрын
@@veryacademy no Mate, none worked :) Can you also post the link to the first tutorial? The one with static html files? Thank you in advance. Definitely the best explained tutorial I´ve found about this subject. I´ve leaned more from this one tutorial, tahn from a thousand others.
@brunomachado8571
@brunomachado8571 2 жыл бұрын
Another thing, when I try to create superuser I get ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ") AttributeError: 'NoneType' object has no attribute 'split' Would you be so kind as to provide a solution? :)
@anselmobd
@anselmobd 2 жыл бұрын
​@@brunomachado8571 Hi! The os.environ.get is not finding the ALLOWED_HOSTS environment variable, so it returned None, than has no attribute 'split'.
@biscotty6669
@biscotty6669 Жыл бұрын
I'm really enjoying this series. Thank you. I'm stuck at around 10 mins into this video. I can't get past the "Forbidden" problem. If I look in the container I can see that /usr/share/nginx/html/main/index.html does exist. (If it makes any difference I'm working on my own remote server which I control via ssh. Everything has worked fine until now though.) I'd appreciate any help because I'm anxious to move forward.
@veryacademy
@veryacademy Жыл бұрын
hmmm sorry i cant really suggest anything here for you!
@biscotty6669
@biscotty6669 Жыл бұрын
@@veryacademy Thanks for the reply. I actually posted in the wrong place but anyway I worked through it. Having another issue now.
Nginx | Cache Introduction | Docker
39:26
Very Academy
Рет қаралды 8 М.
Docker | Towards serving React (Nginx) with Django API (gunicorn)
48:35
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 9 МЛН
The secret behind FrankenPHP: Will it revolutionize PHP?
12:40
Chris Fidao
Рет қаралды 40 М.
Dockerizing Django with Postgres, Redis and Celery
20:59
Developer Timeline
Рет қаралды 14 М.
Proxy vs Reverse Proxy (Real-world Examples)
5:17
ByteByteGo
Рет қаралды 532 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 57 М.
Deploy a Django web app with Nginx to Amazon EC2
35:26
Cloud With Django
Рет қаралды 39 М.
Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial
21:57
Christian Lempa
Рет қаралды 505 М.
How to Deploy Flask with Gunicorn and Nginx (on Ubuntu)
13:50
Tony Teaches Tech
Рет қаралды 66 М.
How to Deploy Django on Nginx with uWSGI (full tutorial)
37:57
Tony Teaches Tech
Рет қаралды 88 М.