Connect Postgres DB (inside a docker container) to a Python App using psycopg2 (inside a docker container too) #1118
Rubens-Sandoval
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a python application developed with streamlit library, I built it using a Postgres database outside a container, but I can't find the required attributes of my container database to connect with my container application.
I think that I only to find what I have to insert at "host" attribute, I've tried with name of container, the code that I find bellow the name, the path that I find in the "inspect" tab of container, tried create a network too but I can't establish the connection with the IP generated by the network too.
PS: I'm using psycopg2 library.
Beta Was this translation helpful? Give feedback.
All reactions