Use only in dev mode.
Before all, ensure that you have Docker running on your machine.
Start application in dev mode and run the following command:
quarkus dev
Then run the following command for K6 test:
docker run --add-host=host.docker.internal:host-gateway \
--rm -i grafana/k6 run - <k6/script.js