Nginx Reverse Proxy | Django Deployment | Docker | Staticfiles
HTML-код
- Опубликовано: 20 окт 2024
- 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/ver...
After wasting 2 days, I found this video it solved my problem. Thanks a lot.
Glad to hear!
Awesome series! Looking forward to the next parts, especially on caching. Thanks for your videos.
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
Thank you for the video. For me this gunicorn / nginx thing is too much. You made it much easier to understand.
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.
Glad it helped
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
Спасибо. Ура, наконец-то у меня получилось подключить статику!
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.
best video in the subject by FAR, thanks man
Thank you so much! This video tutorial has been very useful and easy to understand.
Kudos!
underrated channel ngl
Thank you, very clear explanation!
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?
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.
@@veryacademy You are just amazing!
Thank you Jorge, we all are amazing!
Thank you sir, very much appreciated.
You deserve more subs and views!
Thank you!
Thanks for subtitling the video :)
No problem
this is really great tutorial, could you please include react production build serving through nginx
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
Thank you so much for this video
Is it recommended that Django project files and static files be in a volume?
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.
really fantastic!
Thanks a lot!
Securing the containerized Django application (SSL) and deploying it would be a great continuation.
Next up is Django with secure link example then ssl probably with digital ocean. Then we move to api gateway
@@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 :)
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
Q1 - still relevant.
Q2 - my bad... improper indenting caused this error.
thank you!!!! Files that didn't work with nginx are being read.
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.
Thank you. SSL is work ??
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
User: admin Pass: admin
If not let me know, try admin and password
@@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.
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? :)
@@brunomachado8571 Hi! The os.environ.get is not finding the ALLOWED_HOSTS environment variable, so it returned None, than has no attribute 'split'.
Oops, after I use nginx according to these instructions for the static files, the messages via Celery no longer work.
Hmm, sorry, I can't help with this; let me know if you find out what the problem is.
@@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 ....
@@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 ...
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 ...
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?
👍
👍
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.
hmmm sorry i cant really suggest anything here for you!
@@veryacademy Thanks for the reply. I actually posted in the wrong place but anyway I worked through it. Having another issue now.