Terraform configuration to deploy BookStack on Google Cloud Platform with Cloudflare as DNS
BookStack is run in a Docker container on a Google Compute Engine (GCE) instance. This is facilitated by the Terraform Google Container VM Metadata Module which deploys docker containers on GCE instances within Google's Container Optomized OS and LinuxServer.io's BookStack container.
The instance sits behind an External HTTPS Load Balancer and a domain configured on Cloudflare.
This configuration also provisions a MySQL Cloud SQL database for use with BookStack.
- Clone the repository
- See the Terraform docs on getting started with the Google Cloud Platform Provider
- Create a
terraform.tfvars
file based on the template (terraform.tfvars.tpl
) provided - Apply the configuration