01 / 04
Cloud Run for the web tier
One command deploys your image. Cloud Run gives you HTTPS, autoscaling, IAM, and rolling revisions out of the box. It's the closest thing to 'deploy and forget' in the industry.
bashgcloud run deploy rails-web \ --image=us-central1-docker.pkg.dev/proj/app/web:latest \ --region=us-central1 \ --port=3000 \ --min-instances=1 --max-instances=20 \ --cpu=1 --memory=1Gi \ --set-secrets=RAILS_MASTER_KEY=rails-master-key:latest \ --add-cloudsql-instances=proj:us-central1:app-db