I recommend you reach out to the Mendix commercial team to discuss your licensing needs: https://www.mendix.com/contact-us/
If you buy a license you have the option to deploy your application in the Mendix Cloud or on premise. In this case you would want to deploy on premise.
Here is the documentation for that.
Hope this helps!