You run your application in local machine or in docker?
- If you run in your local machine, i think correct property config is that:
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
- If you run your application in docker, you have to make sure that both your application and db image are sharing same network. You can config docker network like this:
