From the Install Guide
Discourse will not work from an IP address, you must own a domain name such as
example.comto proceed.
If you’re not using a publicly valid FQDN then the normal install route won’t work for you. Local DNS entries and domain names aren’t interchangeable here. Let’s Encrypt will fail because the DNS entry isn’t valid.
You’re going to need to modify the app.yml by hand to eliminate HTTPS and Let’s Encrypt. Comment out the unnecessary templates and the entry which exposes port 443.
Unless you plan on issuing a self-signed certificate you will be serving everything over HTTP.