Azure Container Instance
Azure Container Instances (ACI) is a simple and efficient way to run containers in the cloud. This document guides you through launching an ACI instance and running an Appsmith container. The data persists in Azure Storage Account File Share.
Azure only supports CIFS file shares and doesn't support NFS file shares.
Prerequisites
Before launching an ACI instance, you need to have an Azure subscription and have the Azure CLI installed on your machine.
- Azure Subscription - If you don't have an Azure subscription, you can sign up for a free trial.
- Azure CLI.
Configure variables
Update the following values starting with 'my' where necessary, and enter them in your shell/terminal.
resourceGroupName="myResourceGroup"
aciName="myAppsmithACI"
storageAccountName="mystorageaccount$RANDOM"
aciLocation="southindia"
fileShareName="myFileShareName"
dnsNameLabel="myDNSLabel"
Create a resource group (optional)
You can skip this step if you want to use an existing resource group.
az group create --name $resourceGroupName --location $aciLocation
Create a storage account (optional)
You can skip this step if you want to use an existing storage account.
az storage account create --resource-group $resourceGroupName --name $storageAccountName --location $aciLocation --sku Standard_LRS
Get the storage account key
storageAccountKey=$(az storage account keys list --resource-group $resourceGroupName --account-name $storageAccountName --query "[0].value" --output tsv)
Create a file share
az storage share create --name $fileShareName --account-name $storageAccountName --account-key $storageAccountKey
Install Appsmith
-
Create an Azure container instance for Appsmith with:
az container create \
--resource-group $resourceGroupName \
--name $aciName \
--image appsmith/appsmith-ee \
--ip-address public \
--dns-name-label $dnsNameLabel \
--ports 80 443 \
--cpu 2 \
--memory 4 \
--azure-file-volume-account-name $storageAccountName \
--azure-file-volume-account-key $storageAccountKey \
--azure-file-volume-share-name $fileShareName \
--azure-file-volume-mount-path "/appsmith-stacks/" \
Install Appsmith Community
To install the Appsmith open source edition (Appsmith Community), replace appsmith-ee
with appsmith-ce
while creating an Azure container instance file on this page.
Post-installation configuration
Once you have completed the installation process, consider performing the tasks below to configure and manage your Appsmith instance, enhancing its security and performance, specifically if it's intended for production use.
Configure SSO to allow users to sign in using your identity provider. Learn more about configuring SSO
Set up an email service to enable Appsmith to send notifications and alerts. Learn more about configuring email services
Set up a custom domain for your Appsmith instance and secure it with SSL. Learn more about setting up custom domains and SSL
Ensure the safety of your Appsmith instance data by regularly backing up and restoring it when needed. Learn more about Backup and Restore
Troubleshooting
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.