Local docker database connection


I have an error with my Docker spaces which contains both a postgres image and a streamlit app. I succesfully ran both in the same container, but now I can’t reach postgres because host.docker.internal does not exists.
The problem doesn’t happen if I run the app locally.

Any idea how I can fix this problem ?

Thanks !

hi @leo-bourrel ,

I sent you suggestions as PR
Another note, you’re exposing your OpenAI key. Please make sure you use Secrets instead on Variables, they’re essentially the same, but one is private and the other one is public

1 Like