A step-by-step guide to containerizing and deploying a NestJS API on Google Cloud Run. Covers setting up a GCP project via CLI, using Cloud Buildpacks and Artifact Registry to build and publish Docker images, deploying the service, and managing runtime environment variables. Also explains the Cloud Run architecture stack from Kubernetes to Knative to Cloud Run, and includes Node.js-specific deployment best practices.

12m read timeFrom telerik.com
Post cover image
Table of contents
PrerequisitesSetting Up a NestJS ProjectSetting Up Our Project on GCPGoogle Cloud Run, Knative and KubernetesDeployment OptionsDeploy from ContainerPreparing Our NestJS Project Before DeploymentConfiguring the PortBuilding and Deploying Our NestJS App as a ServiceCreating an Artifact RepositoryBuilding and Publishing the Image to the Artifact RepositoryCreating a Service on Cloud Run Using the Image URLAdding Runtime-Specific Environment VariablesBest PracticesNext StepsConclusion

Sort: