i'm just starting with docker and i have an problem.
I'm woring in windows with wsl 2.0.
I've run postgres on port 5432 in docker, and it run well. I've cretared java app, which has access do postgress on localhost:5432. When i run app on Intellij, it works fine.
When i build and run this app in docker, i have error, that it can't connect to postgress.
I assume, that maybe i should change "localhost" to maybe IP, but i'm not yet sure how it works.
Can you help me?