Hi Paul,
I made the same move earlier this year – from a 32-bit VPS to full 64-bit, and due to issues with WordPress sites getting compromised and affecting/infecting each other, I also decided
to move to containerised WordPress instances too (it was actually the driver for moving to 64-bit, I think Docker needed that or something).
I’ve got 2GB RAM and 30GB storage, so not much more than a standard VPS. I currently run 13 containers on my VPS, which consists of:
- mysql-server (one DB per WordPress site within this, separate users per DB, etc.)
- nginx reverse proxy to terminate SSL and direct incoming hostnames to the correct container
- pihole + wireguard + unbound for travelling
- portainer for managing my containers (I have two portainer containers, the second one is used to easily upgrade the first!)
- 6 WordPress containers
- 6 certbot containers, one per WordPress, generally used for first-time cert generation; otherwise stopped
- 1 certbot-renew container than runs once a month and checks all Lets Encrypt certificates, renews any that are expiring soon
I’m also using the official WordPress Docker image, I use the wordpress:php8.1-apache image so that I always get the latest WordPress available, but pin to a version of PHP, pretty
sure I’m not running an instance of MariaDB per WP site with this!
I recently started using Docker compose stacks to manage my containers; the WordPress sites + nginx + MySQL are in one, the certbots are in another, certbot-renew is in another,
and pihole + vpn is in another. Makes it easy to update/restart/manage different sets of containers together.
I’ve not had any performance issues with any of my sites or with my VPS in general. Mine are also generally low traffic I used to run all these WordPress sites directly on the VPS
with Apache virtualhosts before, if anything I’d say it runs better now. According to htop, I’m using 1.2GB of 1.9GB of RAM, and just over 50% of my 1GB of swap. Load average is 0 – 0.1 whenever I check.
Happy to share any of my config if it’s helpful.
Cheers,
Paul