For further reference, please consider the following sections:
$ ./gradlew build
$ docker-compose up
version: '3'
services:
penr-oz-springapi-wiremock:
entrypoint: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005
ports:
- "8080:8080"
- "5005:5005"
then
$ docker-compose up
finally use your favorite IDE to put breakpoints and connect to debugger e.g. Intellij Remote Java which requires a correct local JDK installed.
$ docker-compose stop
$ docker-compose down
docker-compose ps