palaa159 / cloud-run-wordpress

Deploy a Wordpress site on Google Cloud Run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloud-run-wordpress

Medium article: Deploy a Wordpress site on Google Cloud Run

Deploy steps

Build image

gcloud builds submit --tag gcr.io/[PROJECT-ID]/wp:v1

Deploy image

gcloud beta run deploy wp --image gcr.io/[PROJECT-ID]/wp:v1 \
--add-cloudsql-instances <instance-name> \
--update-env-vars DB_HOST='127.0.0.1',DB_NAME=<dbname>,DB_USER=<dbuser>,DB_PASSWORD=<dbpass>,CLOUDSQL_INSTANCE='<project.id>:<region>:<instance-name>'

About

Deploy a Wordpress site on Google Cloud Run

License:Apache License 2.0


Languages

Language:PHP 69.8%Language:Dockerfile 17.3%Language:Shell 12.9%