Im trying to use docker-compose to run 2 containers of 2 existing images ( SQL image with a database built in already & spring app container containing a jar file ) , but somehow i couldn't manage to make them communicate .these are the screenshots :
error-screenshot1
error-screenshot2
error-screenshot3
error-screenshot4
app.properties-prod
docker-compose
dockerfile-DB
dockerfile-app
pomXML
pomXml
pomXml
i tried upgrading and downgrading the jdk image but i think the problem is not in the jdk , the application runs fine in a seperated container , so i know the problem is with the jdbc version or something , i upgraded the version of the jdbc in the pom.xml i built the jar file again , and same thing again , the projects is using a lot of plugins , lombok , flyway .... i thought maybe some of those tools is blocking the communication ..