I'm trying to build an autoscaled infrastructure for a WordPress site on Google Compute Engine. For WordPress, I want to use the LEMP(Ubuntu-18, Nginx, Mysql, PHP) stack but with a separate Cloud SQL instance as Database.
Here's my plan:
- Create a Boot disk with the WordPress site installed & setup
- Create an Instance template from that Boot Disk
- Create Instance Groups for my required regions with the Template above.
- Create an HTTP Load Balancer to autoscale the instances.
But, I'm really confused at the first step, how I should set up for WordPress site to create an Instance Template, I don't know how can we set up our Apps on Custom Image OR Boot Disk.
Is the approach above is the right one? How can I set up my WordPress site to use in an Instance Template?
Help me, please!
Thanks in advance!