How to install Discourse locally?

It’s for production and it requires https so you need a domain name. The azure one will work.

You don’t have to use the same domain name for the mail server as the hostname. A while back I changed discourse-setup to prompt for the notification email address.

Subdomain means just don’t use x.com but use y.x.com. That’s fairly established practice.