What is the recommended practice for WordPress and Discourse on the same server?

We may recommend WordPress in Docker but only because it will familiarize you with how Discourse runs in Docker, too. What exactly is the problem? This is extremely vague.