If you don't have sbt installed already, you can use the provided wrapper script:
./sbtx -h # shows an usage of a wrapper script
./sbtx compile # build the project
./sbtx test # run the tests
./sbtx run # run the application (Main)
For more details check the sbtx usage page.
Otherwise, if sbt is already installed, you can use the standard commands:
sbt compile # build the project
sbt test # run the tests
sbt run # run the application (Main)
Generate a Docker image first, and then docker compose up:
sbt docker:clean
sbt docker:publishLocal
docker compose up -d