TL;DR: Learn how to deploy the Syncfusion® EJ2 Spreadsheet image using Docker and ASP.NET Core 8.0. This guide simplifies backend setup and connects your client-side app to a scalable, Excel-like spreadsheet API.
The Syncfusion® EJ2 Spreadsheet is a powerful, Excel-like UI component that enables developers to build rich, interactive spreadsheet experiences in web applications. With features like data binding, formatting, Excel import/export, and more, it delivers seamless spreadsheet functionality across platforms.
Developers often struggle with backend setup when integrating Excel-like functionality into web apps. The Syncfusion® EJ2 Spreadsheet Docker image solves this by offering a ready-to-deploy backend powered by ASP.NET Core 8.0.
This guide walks you through deploying and integrating the Docker image with your client-side application.
Before you begin, ensure the following tools are installed and properly set up on your system:
Once these tools are installed, you’re ready to proceed with the full deployment workflow.
Open your terminal and pull the official Syncfusion® Spreadsheet server image:
docker pull syncfusion/spreadsheet-server Create a docker-compose.yml file in your project directory with the following content:
version: '3.4'
services:
spreadsheet-server:
image: syncfusion/spreadsheet-server
environment:
# Provide your license key for activation
SYNCFUSION_LICENSE_KEY: YOUR_LICENSE_KEY
ports:
- "6002:8080"
Note: Syncfusion® Spreadsheet is a commercial product. You must provide a valid license key to run it in production. Replace YOUR_LICENSE_KEY with your actual key.
Navigate to the directory containing your docker-compose.yml and run:
docker-compose up Once running, the Spreadsheet server APIs will be available at:
In your client-side app (JavaScript, React, Angular, Vue, ASP.NET Core, and ASP.NET MVC), configure the Spreadsheet component to use the Docker-hosted API:
<SpreadsheetComponent
openUrl='http://localhost:6002/api/spreadsheet/open'
saveUrl='http://localhost:6002/api/spreadsheet/save'/> By default, the Spreadsheet Docker container uses the en_US culture. To change it, set the LC_ALL, LANGUAGE, and LANG environment variables in your docker-compose.yml file. These values configure the server to run with the specified locale.
Here’s an example that sets the culture to German (de_DE.UTF-8):
version: '3.4'
services:
spreadsheet-server:
image: syncfusion/spreadsheet-server
environment:
# Provide your license key for activation
SYNCFUSION_LICENSE_KEY: YOUR_LICENSE_KEY
# Specify the culture to configure for the Spreadsheet server
LC_ALL: de_DE.UTF-8
LANGUAGE: de_DE.UTF-8
LANG: de_DE.UTF-8
ports:
- "6002:8080"
Create your own Docker image if you want to add or customize functionalities.
Make sure Docker Desktop and .NET 8.0 SDK are installed.
Clone or download the Docker service application from GitHub.
Open a terminal in the root folder of the sample and run the commands below.
docker build -t spreadsheet-image
docker run -d -p 6002:8080 --name spreadsheet-container spreadsheet-image
Instead of manually running the container, you can use Docker Compose:
docker build -t spreadsheet-image version: '3.4'
services:
spreadsheet-container:
image: spreadsheet-image
environment:
# Provide your license key for activation
SYNCFUSION_LICENSE_KEY: YOUR_LICENSE_KEY
ports:
- "6002:8080" docker-compose up Ensure your client app uses the correct API endpoints:
openUrl: 'http://localhost:6002/api/spreadsheet/open',
saveUrl: 'http://localhost:6002/api/spreadsheet/save', Deploying the Syncfusion® EJ2 Spreadsheet backend using Docker and ASP.NET Core 8.0 provides a scalable and modular solution for enterprise-grade spreadsheet applications. By leveraging Docker Compose, developers can configure culture settings, manage environment variables (including license keys), and streamline deployment across environments. This setup ensures a smooth and consistent experience whether you’re using JavaScript, React, Angular, Vue, ASP.NET Core or ASP.NET MVC.
For more platform-specific guides, check out our Open and Save functionality tutorials below:
Customers with an active license can download the latest release of Essential Studio® from the license and downloads page. New users are invited to start a 30-day free trial to explore the latest features.
Need help? Reach out through our support forum, support portal, or feedback portal. We’re here to help you build modern, feature-rich applications with confidence and ease.