.net core connect to postgresql DB

Hello All,

just check whether it’s possible for below scenarios

I have .net core Web API which is running in docker. need to connect postgresql DB which running out side docker means different server.

Is it possible ?

Hey there.
Just recently, I connected ASP.NetCore Web App to my Postgres on Docker.
It’s possible. I guess, it should be the same for yours? Sorry I’m new to this too.

Here is the link that I referred to:

Hope this helps!

I believe this .net core accessing dockerized PostgreSQL DB.
I am looking .net core need to connect PostgreSQL DB which is outside of docker,.

Any one able to help me out?