How to Deploy JavaScript DOCX Editor Docker image on Azure App
28 Aug 20261 minute to read
Prerequisites
-
Ensure you have an
Azure accountand theAzure CLIinstalled in your environment. -
Run the following command to open the Azure login page. Sign in to your
Microsoft Azure account.
az login
Step 1: Create a resource group.
Create a resource group using the az group create command.
The following example creates a resource group named documenteditorresourcegroup in the East US location.
az group create --name documenteditorresourcegroup --location "East US"
Step 2: Create an Azure App Service plan.
Create an App Service plan in the resource group with the az appservice plan create command.
The following example creates an App Service plan named documenteditorappservice in the Standard pricing tier (–sku S1) and in a Linux container (–is-linux).
az appservice plan create --name documenteditorappservice --resource-group documenteditorresourcegroup --sku S1 --is-linux
Step 3: Create a Docker Compose app.
Create a multi-container web app in the documenteditorappservice App Service plan with the az webapp create command. The following command creates the web app using the provided Docker Compose file.
Step 4: Create the documenteditor-server-compose.yml file before running this command.
Step 5: Use the created Docker Compose file in this command.
az webapp create --resource-group documenteditorresourcegroup --plan documenteditorappservice --name documenteditor-server --multicontainer-config-type compose --multicontainer-config-file documenteditor-server-compose.yml
Step 6: Browse to the app.
Browse to the deployed app at http://<app_name>.azurewebsites.net (for example, http://documenteditor-server.azurewebsites.net). Navigating to this link opens the DOCX Editor Web API at http://documenteditor-server.azurewebsites.net/api/documenteditor/, which returns the default GET-method response.
Append the running App Service URL http://documenteditor-server.azurewebsites.net/api/documenteditor/ to the serviceUrl in the client-side DOCX Editor control. For more information about the DOCX Editor control, refer to the Getting Started page.
For more information about the app container service, see the Microsoft Azure Container Service for a production-ready setup.