# How to configure multi-tenancy for Wordpress?

**URL:** <https://discuss.kubernetes.io/t/how-to-configure-multi-tenancy-for-wordpress/29665>\
**Category:** General Discussions\
**Created:** [September 7, 2024, 1:35am UTC](https://discuss.kubernetes.io/t/how-to-configure-multi-tenancy-for-wordpress/29665 "2024-09-07T01:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![9\_9](https://avatars.discourse-cdn.com/v4/letter/9/85e7bf/32.png) [@9\_9](https://discuss.kubernetes.io/u/9_9)\
**Post date:** [September 7, 2024, 1:35am UTC](https://discuss.kubernetes.io/t/how-to-configure-multi-tenancy-for-wordpress/29665/1 "2024-09-07T01:35:27Z")

</div>

I’m very new to Kubernetes. I’m evaluating it to see how it compares to Docker Compose for managing multiple instances of a Wordpress-like software stack on the same server (i.e. multi-tenancy).

The software I’m deploying uses PHP and MySQL like Wordpress, so I figured a good place to start would be to base my deployment off a multi-tenancy Wordpress deployment. I searched long and hard for such an example with Kubernetes, but couldn’t find one. I did find this article about multi-tenancy Wordpress in Docker Compose: [Multiple Wordpress sites on one server with docker | by J.M. Pinney | Medium](https://medium.com/@jmpinney/multiple-wordpress-sites-on-one-server-with-docker-6fb53adc4bfe)

(the way it’s done here is to reverse proxy all of the Wordpress containers through Nginx at the front; each Wordpress instance’s web server is published to a separate port)

I found lots of tips about how to isolate tenants, how you can use namespaces, etc., but no concrete examples on how I should configure two instances of Wordpress on the same server, linked up to one MySQL database server.

Does anyone have some pointers? Thanks!
