Deploying Typesense on Google Cloud Run
TLDR Nicolas attempted to deploy Typesense on Google Cloud Run but encountered problems. CaptainCodeman advised that Cloud Run is unsuitable for Typesense and suggested using a container optimized VM.

Oct 09, 2022 (11 months ago)
Nicolas
07:48 PMAfter successfully running Typesense locally thanks to your nice tutorial, I'm trying to deploy Typesense on Google Cloud Run to minimize hosting costs. But it keeps failing to deploy with error:
Container terminated due to sandbox error.
On the Cloud Run configuration, I have:
- the URL of the Typesense 0.23.1 Docker image that I have pushed to my Google Artifact Registry
- Container port:
8108
- Container command:
run
- Container arguments:
-p 0.0.0.0:8108:8108 -v /tmp/typesense:/data typesense:0.23.1 --data-dir /data --api-key=${TYPESENSE_API_KEY} --enable-cors
I've changed the listening address/port from
8108:8108
to 0.0.0.0:8108:8108
as it seems to be a Cloud Run requirement (first version doesn't work either).- Secrets: API key saved in en var
TYPESENSE_API_KEY
- Everything else is default.
Did anyone successfully deploy Typesense to Google Cloud Run ?
Any idea of what I am missing?
Thanks a lot!
Jason
10:54 PMOct 10, 2022 (11 months ago)
CaptainCodeman
02:00 PMNicolas
07:39 PMOk, I'll try the VM you recommended, thank you!
CaptainCodeman
08:50 PM
CaptainCodeman
08:51 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Deploying Typesense on Google Cloud Platform (GCP)
Stephane asked for advice on deploying Typesense on GCP and encountered an issue with persistent storage. Jason suggested using Linux VMs on GCP instead, which Stephane thanked them for and found a solution in the documentation.

Deploying Typesense in GCP Cloud Run
Christian had difficulties obtaining an API key for deploying Typesense in GCP Cloud Run. Kishore Nallan guided on API key creation when setting up Typesense server and suggested checking the Typesense self-hosting guide. Christian decided to run the Typesense in Kubernetes instead of Cloud Run. Nasim thanked Christian for sharing findings.

Hiring for Typesense Setup in Google Cloud Run
Almog wanted to hire someone for a Typesense setup in Google Cloud Run. Krish offered his services and the author agreed to converse further.
