Skip to main content

Google Cloud Run

This page provides steps to deploy Appsmith on Google Cloud Run.


Appsmith installation on Google Cloud Run operates in an isolated environment, which limits external access to the container for automated backup and restore. Before performing any configuration changes or maintenance tasks, ensure you take a manual backup of your data.

System requirements

Before you begin, ensure you have the following:

  1. A Google Cloud account.
  2. An external MongoDB instance for Appsmith data storage. It's recommended to use MongoDB Atlas.


Before you install Appsmith, it's important to set up the below prerequisites:

Set up Google Cloud Project

  1. Create or select a Google Cloud project. For more information, see Creating a Google Cloud Project.
  2. Enable billing for your Google Cloud project.
  3. Enable the Cloud Filestore API.
  4. Enable the Serverless VPC Access API.

Create a Filestore instance

Follow these steps to create a filestore instance:

  1. In the Google Cloud console, go to the Filestore instances page.
  2. Click Create Instance and configure the instance as follows:
    • Provide a name in the Instance ID box.
    • Set Instance type to Basic.
    • Set Storage type to HDD.
    • Set VPC network to default.
    • Provide a name in the Configure your file share box.
    • Set Allocated IP range to Use an automatically allocated IP range.
    • Set Access controls to Grant access to all clients on the VPC network.
  3. Click Create.
  4. When the new instance creation is complete, note down the File share name and IP address to use later when mounting the Filestore instance in the Cloud Run container.
    File share name and IP address of the filestore instance
    File share name and IP address of the filestore instance

Create a Serverless VPC Access connector

Follow these steps to create a serverless VPC Access connector:

  1. Go to the Serverless VPC Access overview page.
  2. Click Create connector.
  3. In the Name field, enter a name for your connector.
  4. In the Network field, select the default option.
  5. Click the Subnet menu. Select Custom IP range from the menu.
  6. In the IP range field, enter the first address in an unreserved CIDR /28 internal IP range.
  7. Click Create. A green check mark will appear next to the connector's name when it's ready to use.

Install Appsmith

Follow these steps to install Appsmith on Google Cloud Run:

  1. Go to Cloud Run.

  2. Click Create service.

  3. In the form, select Deploy one revision from an existing container image.

    • In the Container image URL box, enter
  4. Enter a desired name in the Service name field.

  5. Set CPU allocation and pricing to CPU is always allocated.

  6. Under Autoscaling:

    • Set Minimum number of instances to 1.
    • Set Maximum number of instances to 4.
    • Select All to allow direct access to your service from the Internet.
  7. Under Authentication, select Allow unauthenticated invocations.

  8. Click Container, Networking, Security to expand the service configuration page.

  9. Click the Container tab.

    • In the Container port box, enter 80 to specify the port you want route traffic to.
    • Under Capacity:
      • Set the memory size to 4 GiB in the Memory dropdown list.
      • Set the CPU limit as 2 in the CPU dropdown list.
    • Under Execution environment, select Second generation.
    • Under Environment variables, click Add Variable to add each variable in the Name and Value text boxes as shown below:
    FILESTORE_IP_ADDRESSThe IP address you noted down in step for creating a Filestore instance in Prerequisites.
    FILE_SHARE_NAMEThe file share name you noted down in step for creating a Filestore instance in Prerequisites.
    APPSMITH_MONGODB_URISpecify the connection string of the external MongoDB instance required for Appsmith data storage.

    APPSMITH_ENCRYPTION_SALTSpecify an encryption salt to encrypt values in the database.
    APPSMITH_ENCRYPTION_PASSWORDSpecify an encryption password to encrypt values in the database.
  10. Click the Networking tab.

    • In the VPC Network field, choose the name of the Serverless VPC Access connector you created in the preceding section.
    • Keep the default Route only requests to private IPs through the VPC connector option.
  11. Click the Deploy button at the bottom of the page to deploy the image to Cloud Run and wait for the deployment to finish. A green check mark will appear next to the deployed service name when it's ready. This can take up to 5 minutes.

  12. Click the displayed URL link to open the unique and stable endpoint of the Appsmith instance.

  13. Fill in your details to create an administrator account.

  14. Once you've created an account, you can either start with the free plan or activate your instance with a license key. If you want to generate a license key, sign up on to create one, and then proceed to activate your instance using the newly generated license key.

Install Appsmith Community

To install the Appsmith open source edition (Appsmith Community), replace appsmith-ee with appsmith-ce while creating a service in step 3 of the Install Appsmith section on this page.


If you are facing issues during deployment, please refer to the guide on troubleshooting deployment errors.

If you continue to face issues, contact the support team using the chat widget at the bottom right of this page.

See also