How should I enable letsencrypt while discourse is beside other websites

The second sentence of the topic you linked to provides the answer:

How you do that is dependent on how you’ve setup the host system, and is beyond the scope of what a Discourse-specific guide can provide. There are no shortage of guides on the Internet for setting up Let’s Encrypt in all manner of situations.