Prerequisites
You need the gcloud CLI configured with a project that has the Cloud Run, Cloud Build, and Secret Manager APIs enabled:Deploy to Cloud Run
Build and push the container image
Use the Docker deployment patterns to create your Dockerfile. Then build and push to Google Container Registry:Alternatively, use Cloud Build:
Cloud SQL integration
Connect to Cloud SQL for managed PostgreSQL or MySQL:Scaling
Cloud Run scales automatically based on incoming requests. Configure minimum and maximum instances:min-instances=1 avoids cold starts at the cost of continuous billing.