A simple example for building a Java App in docker. This example contains a very simple spring boot application build with maven.
Just enter the following code in a terminal in the root of the project:
docker-compose up --build app
Wait for build and startup finished. Then open http://localhost:8080/.