when I use maven to build my spring boot app the application needs to have a connection to my postgresql database in the application.properties. It only can connect when I use
spring.datasource.url=jdbc:postgresql://localhost:5432/springbootdb
but when I containerize the buileded jar file, my application can't connect to my postgres database hosted outside the Container.
what is the solution for this problem?
I am still a Beginner