Deploying Quarkus Application in Custom Port

 

By default Quarkus application (web based) runs through the port 8080.

There are multiple ways to configure the custom port for Quarkus application. 

1. Property Key/Value through application.properties 

2. Passing as java argument on running the Quarkus jar

Property Key/Value through application.properties

Open application.properties which is placed inside src/main/resources

Add the property quarkus.http.port with custom port of your choice 
example :  quarkus.http.port=8282

Passing as Java argument on running the Quarkus jar

Pass -Dquarkus.http.port=<customport> while running the jar 

example:

java -Dquarkus.http.port=8282 -jar quarkus-run.jar