Connection to localhost:5432 refused despite using docker hostname
I am very confused and looking for help. I'm trying to dockerize my Spring Boot application so I set up a simple dockerfile and docker-compose. No matter what I try, though, I keep getting the same error after I build…