Deploying NocoDB on GCP Cloud Run
This guide will help you deploy NocoDB on Google Cloud Platform using Cloud Run.
Prerequisites
- Google Cloud SDK installed and configured
- Docker
Deployment Steps
-
Pull the NocoDB Docker image:
docker pull nocodb/nocodb:latest
-
Tag the image for Google Container Registry (GCR):
docker tag nocodb/nocodb:latest gcr.io/<MY_PROJECT_ID>/nocodb/nocodb:latest
-
Push the image to GCR:
docker push gcr.io/<MY_PROJECT_ID>/nocodb/nocodb:latest
-
Deploy NocoDB on Cloud Run:
gcloud run deploy --image=gcr.io/<MY_PROJECT_ID>/nocodb/nocodb:latest \
--region=us-central1 \
--allow-unauthenticated \
--platform=managed
Important Notes
- Cloud Run only supports images from Google Container Registry (GCR) or Artifact registry. Hence we pull the image from Docker Hub and push it to GCR.
- Ensure that your GCP project has the necessary APIs enabled (Cloud Run, Container Registry).
- The
--allow-unauthenticated
flag is used to allow unauthenticated access to the service. You can remove this flag if you want to restrict access.