This tutorial walks you through deploying DreamFactory with commercial features to Google Cloud Run.
Time to complete: 15 minutes
Cost: Cloud SQL ($8/mo) + Cloud Run (pay-per-use)
You'll need:
- A Google Cloud project with billing enabled
- A DreamFactory license key (from your DreamFactory sales rep)
Set your project:
gcloud config set project <walkthrough-project-id/>The deploy script provisions everything automatically:
- Cloud SQL (MySQL 8.0)
- Secret Manager secrets
- Artifact Registry + Cloud Build
- Cloud Run service
Run it now:
chmod +x deploy.sh && ./deploy.sh --project=<walkthrough-project-id/>You'll be prompted for:
- Region (default:
us-central1) - DreamFactory license key
- Admin email and password
The script takes about 10-15 minutes (Cloud SQL creation is the longest step).
Once deployment completes, the script prints your service URL.
Open it in your browser and log in with the admin email and password you provided.
- Custom domain: Map your own domain to the service
gcloud run domain-mappings create --service=dreamfactory --domain=api.yourdomain.com --region=us-central1
- Scale up: Adjust instances and resources in the Cloud Run console
- Monitor: View logs in Cloud Run > Logs tab
To remove all resources:
./teardown.sh --project=<walkthrough-project-id/>DreamFactory is now running on Google Cloud Run!