How to run the keycloak server in tomcat

I have a java application which is running in tomcat recently I have integrated keycloak security to the application.

Question: How do we run the keycloak server inside the tomcat where I am running my application. So that both are running in the same server with different ports?

Hi,

this is not supported configuration. For various reasons, we support
just Keycloak server on Wildfly/EAP at this moment. It is recommended
that your application and Keycloak server runs on different servers and
different JVMs. More details are in the Keycloak documentation.

Marek