Unable to connect

Posted August 2, 2021 231 views

[Example link](http://)Hi,
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.

Thank you.

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.

Submit an Answer
1 answer

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;


by Justin Ellingwood
by Hanif Jetha
Interested in Django but not sure where to start with Docker? This tutorial will walk you through first steps: modifying a sample Django application to work in a container-based environment, and building a container image for the Django and Gunicorn app.