Question

Unable to connect

Example linkHi, I am running a django application in Docker. The app was running properly before but now it is giving me the following error continuously.

I am not sure where is the error. Please have a look over the following attached screenshot.

https://drive.google.com/file/d/1o1Sb8p5AG-H944C9CgmwzZq66TlFHVAD/view?usp=sharing

Thank you.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @asadullah73,

Let’s start with the basics. I can see your Domain is now loading with a basic Nginx page. This means the domain’s nginx configuration is not properly done.

What I’ll recommend is providing the config file here so that we can further provide you with some guidelines. The main thing is that you create a reverse proxy to your Django application.

Luckily, DigitalOcean have a pretty good tutorial on how to configure such setup with Nginx, Django with Docker. You can check it here;

https://www.digitalocean.com/community/tutorials/how-to-build-a-django-and-gunicorn-application-with-docker

Regards, KFSys