Free as in terms of having a free server to host it? or free as installing it on your own server?
If you are looking for the second one, then yes, there is a free way to install discourse, I used this one discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub