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

AI-generated summary

In a discussion about running WordPress and Discourse on the same Dockerized server, erlend_sh seeks recommended practices for an open-source project utilizing free dedicated hosting. While the team initially attempted to run WordPress in a Docker container, they encountered difficulties and ended up with a non-standard setup running WordPress outside of Docker due to conflicts with Discourse’s environment. codinghorror suggests that running WordPress in Docker is often recommended primarily to familiarize users with Discourse’s own Docker operations, asking for more specific details on the technical hurdles faced. erlend_sh clarifies that the thread is a knowledge-exchange quest rather than a specific troubleshooting request, inviting others to share successful configurations. riking contributes a technical recommendation, advising the use of an nginx PHP runner instead of Apache to manage rules centrally, which avoids the need for scattered .htaccess files. Ultimately, erlend_sh concludes the discussion by pointing to a canonical thread on running other websites on the same machine as Discourse as the definitive resource, suggesting this topic be closed in favor of that existing guide.

I know a lot of Discourse users are using WordPress as their blog/CMS, so I’m hoping for some knowledge & experience exchange.

I’m trying to ascertain if there is some kind of recommended practice for running WordPress and Discourse on the same (Dockerized) server. I doubt this mini-how-to is still relevant.

Why are we on a single (dedicated) server?
As an open source project we got ourselves free dedicated hosting with plenty of power to accommodate both WordPress and Discourse.

What’s the problem?
Running WordPress in a Docker container was more difficult than we anticipated (for reasons which I can hopefully elaborate on later). We ended up running WordPress outside of Docker, but because of Docker & Discourse’s presence, this proved difficult as well.

All very vague, I know, but it’s exactly because our setup ended up being quite non-standard that I haven’t been able to wrap my head around it yet.

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.

I’ll try get more info.

It’s not so much a problem I need solving though. This is just a small knowledge-quest. If someone’s been in a similar situation and came up with a set-up they’re happy with, do share. If I come up empty, no biggie.

I think that the only thing non-typical with Wordpress would be that you should use the nginx php runner instead of Apache. (This also gives you a central location for rules that would go into .htaccess files.)

This topic can (also) be closed in favour of the canonical answer here: