Why is Docker unable to access to my jarfile?

I’M very new to the whole Dockers and currently I am trying to connect Spring Application with Maven to a mysql docker container. My mysql docker could set up well and I can connect it to MYSQLWOrkbench to test but with Spring it is unable to acess to the jar file. How can I solve this?

Firtst of all this is my Dockerfile
enter image description here

*as note: the docker file could build successfully but an error ‘invalid or corrupted jar’ occured

This is my Docker-compose yaml file
enter image description here

This is when I am trying on terminal docker-compose up
enter image description here

Source: Docker Questions