Deploy Laravel into Google Cloud Run
Friday, September 5, 2025 |In my previous company, I get a privilege to try Google Cloud Run. Google Cloud Run is a part of Google Cloud Platform to run serverless or container-based app. I test how to deploy Laravel project into Cloud Run (services and jobs) using Server Side Up docker-php and it works! I will give you brief summary what I have done to make deploy Laravel to Cloud Run:
- Set
LOG_STACKvalue tosingle. This is recommended option when you want to get trace errors and info in container mode. - You will manage the credentials using Secret Manager (a product of Google Cloud Platform) instead of
.envto manage credentials. - Please see senkulabs/logcatcher for Laravel project with Server Side Up docker-php and senkulabs/infracode-talker for
webapp.yaml(cloud run service) andscheduler.yaml(cloud run job) for Cloud Run configuration.
Well, have fun!