The Cloud Run path uses infra/cloud-run/cloudbuild.yaml, which builds from infra/docker/Dockerfile, pushes the image to Artifact Registry, and deploys the service.Before submitting, set CHAIN_ID for the intended network in the deploy step’s environment values. Add any other runtime overrides from Environment Variables there or to the secret bindings as appropriate. Create the secrets listed below before deployment.For manual submissions, supply SHORT_SHA explicitly because the image tag uses it. Repository-triggered builds can supply this value automatically.Supabase mode example:
The supplied Cloud Build file builds and deploys the application, but it does not run database migrations. Run bun run db:push from a secured checkout with the production database connection, SITE_URL, CRON_SECRET, and selected storage profile before opening traffic. Use POSTGRES_URL_NON_POOLING when the runtime URL uses transaction pooling.After deployment, verify the latest revision is serving successfully and open the canonical SITE_URL. If you use S3 mode, or Supabase mode without active database sync jobs, configure Scheduled Jobs.
Scheduler
If the supplied database jobs are not active, create Cloud Scheduler jobs that follow Scheduled Jobs.
Do not create Cloud Scheduler jobs while the same routes are already scheduled through pg_cron.
Optional Terraform
cd infra/terraform/environments/production/cloud-runcp terraform.tfvars.example terraform.tfvarsterraform initterraform planterraform apply
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kuest Owner Docs","description":"Launch and operate your own Kuest site.","colors":{"primary":"#0E1117","light":"#CDFF00","dark":"#708B00"},"logo":{"light":"https://mintcdn.com/forkast/5L3UZV4Tz7NUHfhQ/logo/light.svg?fit=max\u0026auto=format\u0026n=5L3UZV4Tz7NUHfhQ\u0026q=85\u0026s=0d9ecd4a6862122f7b19cb7d5e6a7ddb","dark":"https://mintcdn.com/forkast/5L3UZV4Tz7NUHfhQ/logo/dark.svg?fit=max\u0026auto=format\u0026n=5L3UZV4Tz7NUHfhQ\u0026q=85\u0026s=4d1c62012d00662e53f117813ed7d430"},"favicon":"https://mintcdn.com/forkast/mUjFQyFM_MtQ-eYG/favicon.svg?fit=max\u0026auto=format\u0026n=mUjFQyFM_MtQ-eYG\u0026q=85\u0026s=8428980b048391f7d36fdff75b98745f","background":{"color":{"dark":"#181A1F"}},"navbar":{"links":[{"href":"mailto:support@kuest.com","label":"Support"}],"primary":{"type":"button","label":"Kuest Home","href":"https://kuest.com"}},"footer":{"socials":{"github":"https://github.com/kuest","discord":"https://discord.gg/kuest","twitter":"https://x.com/kuest"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"satellite-dish","href":"https://kuest.instatus.com"},{"anchor":"X (Twitter)","icon":"twitter","href":"https://x.com/kuest"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/kuest"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"forkast","hasAudioNarration":false,"actualSubdomain":"forkast","customDomains":["docs.kuest.com"],"gitSource":{"type":"github","owner":"kuest","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b07244002c17a8ee78d8f26","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Manual Installation","count":12},{"language":"default","tag":"Site Customization","count":11},{"language":"default","tag":"Admin Panel","count":10},{"language":"default","tag":"Deployment Targets","count":9},{"language":"default","tag":"Create Market API","count":3},{"language":"default","tag":"Resolution API","count":2},{"language":"default","tag":"Owner Guide","count":2},{"language":"default","tag":"Guided Installation","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html.dark,html.dark body,html.dark #navbar,html.dark #sidebar,html.dark #content-area,html.dark #content-container,html.dark #body-content,html.dark #footer{background-color:#181A1F!important}html.dark #root,html.dark #__next,html.dark main{background-color:transparent!important}html.dark sidebar-title,html.dark .sidebar-title,html.dark #sidebar h5,html.dark #sidebar h6{color:#E9ECEF!important}"}]}
{"page":{"pagePath":"manual-installation/cloud-run","slug":"/manual-installation/cloud-run","pageMetadata":{"title":"Cloud Run","description":"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.","icon":"cloudy","href":"/manual-installation/cloud-run"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`GCP project with billing enabled`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`gcloud`}),` installed and authenticated`]}),`\n`,_jsx(_components.li,{children:`Cloud Build, Artifact Registry, Cloud Run Admin, and Secret Manager APIs enabled`}),`\n`,_jsx(_components.li,{children:`An Artifact Registry Docker repository matching the repository and region selected for your deployment`}),`\n`,_jsx(_components.li,{children:`Permissions for Cloud Build to push images and deploy, and for the Cloud Run runtime service account to access the referenced secrets`}),`\n`,_jsxs(_components.li,{children:[`Base values from `,_jsx(_components.a,{href:`/configuration/environment-variables`,children:`Environment Variables`})]}),`\n`,_jsxs(_components.li,{children:[`A storage profile from `,_jsx(_components.a,{href:`/manual-installation/overview`,children:`Manual Installation Overview`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`build-and-deploy`,children:`Build and deploy`}),`\n`,_jsxs(_components.p,{children:[`The Cloud Run path uses `,_jsx(_components.code,{children:`infra/cloud-run/cloudbuild.yaml`}),`, which builds from `,_jsx(_components.code,{children:`infra/docker/Dockerfile`}),`, pushes the image to Artifact Registry, and deploys the service.`]}),`\n`,_jsxs(_components.p,{children:[`Before submitting, set `,_jsx(_components.code,{children:`CHAIN_ID`}),` for the intended network in the deploy step’s environment values. Add any other runtime overrides from `,_jsx(_components.a,{href:`/configuration/environment-variables`,children:`Environment Variables`}),` there or to the secret bindings as appropriate. Create the secrets listed below before deployment.`]}),`\n`,_jsxs(_components.p,{children:[`For manual submissions, supply `,_jsx(_components.code,{children:`SHORT_SHA`}),` explicitly because the image tag uses it. Repository-triggered builds can supply this value automatically.`]}),`\n`,_jsx(_components.p,{children:`Supabase mode example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gcloud`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` builds`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` submit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --config`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` infra/cloud-run/cloudbuild.yaml`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --substitutions=SHORT_SHA=$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rev-parse`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --short `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`HEAD`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`),_SERVICE=kuest-web,_REGION=us-central1,_SITE_URL=https://markets.example.com,_STORAGE_MODE=supabase`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`S3 mode example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gcloud`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` builds`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` submit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --config`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` infra/cloud-run/cloudbuild.yaml`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --substitutions=SHORT_SHA=$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rev-parse`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --short `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`HEAD`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`),_SERVICE=kuest-web,_REGION=us-central1,_SITE_URL=https://markets.example.com,_STORAGE_MODE=s3,_S3_ENDPOINT=https://s3.example.com,_S3_REGION=us-east-1,_S3_FORCE_PATH_STYLE=true`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`secrets-to-create-in-secret-manager`,children:`Secrets to create in Secret Manager`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`POSTGRES_URL`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`CRON_SECRET`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`BETTER_AUTH_SECRET`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`REOWN_APPKIT_PROJECT_ID`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`ADMIN_WALLETS`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`KUEST_ADDRESS`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`KUEST_API_KEY`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`KUEST_API_SECRET`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`KUEST_PASSPHRASE`})}),`\n`]}),`\n`,_jsx(_components.p,{children:`Add either:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`SUPABASE_URL`}),` and `,_jsx(_components.code,{children:`SUPABASE_SECRET_KEY`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`or:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`S3_BUCKET`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`S3_ACCESS_KEY_ID`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`S3_SECRET_ACCESS_KEY`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`migrate-and-verify`,children:`Migrate and verify`}),`\n`,_jsxs(_components.p,{children:[`The supplied Cloud Build file builds and deploys the application, but it does not run database migrations. Run `,_jsx(_components.code,{children:`bun run db:push`}),` from a secured checkout with the production database connection, `,_jsx(_components.code,{children:`SITE_URL`}),`, `,_jsx(_components.code,{children:`CRON_SECRET`}),`, and selected storage profile before opening traffic. Use `,_jsx(_components.code,{children:`POSTGRES_URL_NON_POOLING`}),` when the runtime URL uses transaction pooling.`]}),`\n`,_jsxs(_components.p,{children:[`After deployment, verify the latest revision is serving successfully and open the canonical `,_jsx(_components.code,{children:`SITE_URL`}),`. If you use S3 mode, or Supabase mode without active database sync jobs, configure `,_jsx(_components.a,{href:`/manual-installation/scheduler-jobs`,children:`Scheduled Jobs`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`scheduler`,children:`Scheduler`}),`\n`,_jsxs(_components.p,{children:[`If the supplied database jobs are not active, create Cloud Scheduler jobs that follow `,_jsx(_components.a,{href:`/manual-installation/scheduler-jobs`,children:`Scheduled Jobs`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not create Cloud Scheduler jobs while the same routes are already scheduled through `,_jsx(_components.code,{children:`pg_cron`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`optional-terraform`,children:`Optional Terraform`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` infra/terraform/environments/production/cloud-run`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` terraform.tfvars.example`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` terraform.tfvars`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`terraform`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`terraform`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` plan`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`terraform`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` apply`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cloud Run","description":"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.","icon":"cloudy","href":"/manual-installation/cloud-run"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Build and deploy","slug":"build-and-deploy","depth":2,"children":[]},{"title":"Secrets to create in Secret Manager","slug":"secrets-to-create-in-secret-manager","depth":2,"children":[]},{"title":"Migrate and verify","slug":"migrate-and-verify","depth":2,"children":[]},{"title":"Scheduler","slug":"scheduler","depth":2,"children":[]},{"title":"Optional Terraform","slug":"optional-terraform","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"forkast","siteName":"Kuest Owner Docs","title":"Cloud Run - Kuest Owner Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T19:09:47.575Z","originalFileLocation":"manual-installation/cloud-run.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kuest Owner Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cloud Run - Kuest Owner Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kuest Owner Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kuest.com/manual-installation/cloud-run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://forkast.mintlify.site/_mintlify/api/og/v2?division=Deployment+Targets\u0026amp;title=Cloud+Run\u0026amp;description=Deploy+Kuest+to+Google+Cloud+Run+with+Cloud+Build+and+Secret+Manager.\u0026amp;theme=56e8b90533d07f00d2da7bed\u0026amp;signature=8076ec71517276e97d2444c31e7acf07b98f7f86e3dd9d358f727c612613676c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cloud Run - Kuest Owner Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://forkast.mintlify.site/_mintlify/api/og/v2?division=Deployment+Targets\u0026amp;title=Cloud+Run\u0026amp;description=Deploy+Kuest+to+Google+Cloud+Run+with+Cloud+Build+and+Secret+Manager.\u0026amp;theme=56e8b90533d07f00d2da7bed\u0026amp;signature=8076ec71517276e97d2444c31e7acf07b98f7f86e3dd9d358f727c612613676c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/forkast/QuL-IwW0IdwuRqAe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kuest Owner Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E1117\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kuest.com/manual-installation/cloud-run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/manual-installation/cloud-run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kuest.com/#organization\",\"name\":\"Kuest Owner Docs\",\"url\":\"https://docs.kuest.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/forkast/5L3UZV4Tz7NUHfhQ/logo/light.svg?fit=max\u0026auto=format\u0026n=5L3UZV4Tz7NUHfhQ\u0026q=85\u0026s=0d9ecd4a6862122f7b19cb7d5e6a7ddb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kuest.com#website\",\"name\":\"Kuest Owner Docs\",\"url\":\"https://docs.kuest.com\",\"publisher\":{\"@id\":\"https://docs.kuest.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kuest.com/manual-installation/cloud-run#webpage\",\"url\":\"https://docs.kuest.com/manual-installation/cloud-run\",\"name\":\"Cloud Run\",\"description\":\"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.\",\"dateModified\":\"2026-10-29T19:09:47.575Z\",\"isPartOf\":{\"@id\":\"https://docs.kuest.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kuest.com/manual-installation/cloud-run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kuest.com/manual-installation/cloud-run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Manual Installation\",\"item\":\"https://docs.kuest.com/manual-installation/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deployment Targets\",\"item\":\"https://docs.kuest.com/manual-installation/vercel\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cloud Run\",\"item\":\"https://docs.kuest.com/manual-installation/cloud-run\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.kuest.com/manual-installation/cloud-run#article\",\"headline\":\"Cloud Run\",\"name\":\"Cloud Run\",\"description\":\"Deploy Kuest to Google Cloud Run with Cloud Build and Secret Manager.\",\"url\":\"https://docs.kuest.com/manual-installation/cloud-run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kuest.com/manual-installation/cloud-run#webpage\"},\"dateModified\":\"2026-10-29T19:09:47.575Z\",\"publisher\":{\"@id\":\"https://docs.kuest.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kuest.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kuest Owner Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kuest Owner Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/manual-installation/cloud-run.md","siteName":"Kuest Owner Docs","nav":{"global":{"anchors":[{"anchor":"Status","icon":"satellite-dish","href":"https://kuest.instatus.com"},{"anchor":"X (Twitter)","icon":"twitter","href":"https://x.com/kuest"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/kuest"}]},"groups":[{"group":"Owner Guide","pages":[{"title":"Owner Guide","sidebarTitle":"Overview","icon":"book-open","href":"/index"},{"title":"How Kuest Works","icon":"network","href":"/concepts/architecture"}]},{"group":"Guided Installation","pages":[{"title":"Launch Overview","icon":"rocket","href":"/launch/overview"}]},{"group":"Manual Installation","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"wrench","href":"/manual-installation/overview"},{"group":"Deployment Targets","icon":"boxes","expanded":false,"pages":[{"title":"Vercel + Supabase","icon":"cloud","href":"/manual-installation/vercel"},{"title":"Docker Compose","description":"Run Kuest with Docker Compose for local parity or self-hosted production.","icon":"container","href":"/manual-installation/docker-compose"},{"title":"Cloud Run","icon":"cloudy","href":"/manual-installation/cloud-run"},{"title":"Railway","description":"Deploy Kuest on Railway with GitHub-based builds and an external scheduler when needed.","icon":"train-front","href":"/manual-installation/railway"},{"title":"Fly.io","icon":"plane","href":"/manual-installation/fly-io"},{"title":"DigitalOcean","icon":"app-window","href":"/manual-installation/digitalocean"},{"title":"VPS","icon":"monitor","href":"/manual-installation/vps"},{"title":"Kubernetes","icon":"network","href":"/manual-installation/kubernetes"},{"title":"Terraform","icon":"blocks","href":"/manual-installation/terraform"}]},{"title":"Environment Variables","icon":"key","href":"/configuration/environment-variables"},{"title":"Scheduled Jobs","icon":"timer","href":"/manual-installation/scheduler-jobs"}]},{"group":"Site Customization","pages":[{"group":"Admin Panel","icon":"shield-check","expanded":false,"pages":[{"title":"Dashboard","icon":"layout-dashboard","href":"/admin/dashboard"},{"title":"Events","icon":"calendar-range","href":"/admin/events"},{"title":"Users","icon":"users","href":"/admin/users"},{"title":"Affiliate \u0026 Fees","icon":"badge-percent","href":"/admin/affiliate"},{"title":"Market Making","icon":"handshake","href":"/admin/market-making"},{"title":"General","icon":"settings","href":"/admin/general"},{"title":"Integrations","icon":"plug","href":"/admin/integrations"},{"title":"Categories","icon":"tags","href":"/admin/categories"},{"title":"Locales","icon":"languages","href":"/admin/locales"},{"title":"Theme","icon":"palette","href":"/admin/theme"}]},{"title":"Custom Domain","sidebarTitle":"Custom Domain","icon":"globe","href":"/configuration/custom-domain"}]},{"group":"Create Market API","pages":[{"title":"Create Market API","icon":"square-pen","href":"/api/create-market/overview"},{"title":"Payloads","icon":"braces","href":"/api/create-market/payloads"},{"title":"Endpoints","icon":"route","href":"/api/create-market/endpoints"}]},{"group":"Resolution API","pages":[{"title":"DRO Resolution API","icon":"square-check-big","href":"/api/resolution/overview"},{"title":"DRO Resolution \u0026 Rewards","icon":"badge-check","href":"/api/resolution/rewards"}]}]},"basePath":"","title":"Cloud Run - Kuest Owner Docs","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":[],"chunks":[]}