For further reference, please consider the following sections:
$ ./gradlew build
$ docker-compose up penr-oz-springapi-kong
version: '3'
services:
penr-oz-springapi-kong:
entrypoint: java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5005
ports:
- "5005:5005"
then
$ docker-compose up penr-oz-springapi-kong
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