Hi All,

I'm looking for tips/resources for a problem I'm facing with my Django app: 
https://ndcportal.herokuapp.com/ 

I'm attempting to connect my Dockerized Django app with a PostgreSQL db. 
The postgres db is already populated, and I can access the data via 
pgadmin, but I cannot figure out the appropriate settings in my 
docker-compose.yml & settings.py files to make the postgres db populate my 
django app. 

I've reviewed multiple tutorials/blog posts, including Will Vincents Docker 
& PostgreSQL tutorial 
<https://learndjango.com/tutorials/django-docker-and-postgresql-tutorial>, 
but I feel like I'm missing one or two final & crucial steps. 

When I change my DB settings for Postgres, & I bring up the app via Docker, 
I continue running into this OperationalError: 



*message:django.db.utils.OperationalError: could not connect to server: 
Connection refused Is the server running on host "db" (172.29.0.2) and 
accepting TCP/IP connections on port 5433?*

Any tips/resources/feedback would be greatly appreciated. Thanks in advance.

Best,
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5b11f9df-d246-4b25-b9b6-8a67193f413en%40googlegroups.com.

Reply via email to