How do I intergrate Google Cloud Filestore with my existing Compute Engine instance running Worpress?

603 Views Asked by At

I have an instance running Linux Debian 9 and Apache2 web server. I used the Bitnami setup and created a WordPress multisite. So what I have done so far is, I have used a Google Cloud storage bucket for all my media files as to not fill up my instance drive. I have also separated my SQL database from the instance using Cloud SQL. So the files that are on the instance are the Wordpress installation files as well as the SSL files. I am using Let's Encrypt to generate my SSL certificates. I have a wildcard cert for my domain. And each site is then mapped to its own domain name using my static IP and Virtual Host configuration on Apache to direct the domain to the correct site.

Question: Is it a good idea to separate my static files system using Google Cloud Filestore? ie: the WordPress installation files, plugins etc. And how would I go about doing this? Do I just mount the entire directory on Filestore? Also when I mount a directory to filestore are the files then removed from the instance and served from Filestore? (Am I understanding correctly?)

0

There are 0 best solutions below