Report this

What is the reason for this report?

Unable to connect

Posted on August 2, 2021

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.



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.