While you can install Discourse in a sub-folder, there are some problems that come up. I would suggest you use this link to look at what issues have come up with sub-folder installations. It can be done, but there are challenges.
https://meta.discourse.org/search?q=installing%20discourse%20on%20subfolders
There are over 50 topics on this.