{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Run Spring Boot in Docker with Debug",
            "type": "process",
            "command": "docker",
            "args": [
                "exec",
                "-it",
                "springboot-dev",
                "./mvnw",
                "spring-boot:run",
                "-Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
            ],
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "Stop Spring Boot in Docker",
            "type": "shell",
            "command": "docker exec springboot-dev pkill -f spring-boot:run",
            "problemMatcher": []
        }
    ]
}