It's been so many months, maybe you've already found the answer to your question, but assuming that hasn't happened, I read in some documentation that in docker you should inform "postgres" in application.properties instead of "localhost" as the postgresql address.