WHERE & HOW can I publish my Captivate 2019 course for my paying customers?

I have created some courses to sell, and I need my customers to be able to go to the site and take the course. Do I have build a website? Or, is there a place that hosts courses under my name? If I do build a website, and I publish it, which I’ve tried, the HTML5 file shows the “localhost” term. Doesn’t that open up my computer for all to see?