Discourse is an open source software and is free to use. In a self installation you will pay only the cost of the server that hosts the site, for example Digital Ocean has plans that start from $5/mo.
Take a look to Recommended Hosting Providers for Self Hosters