How to Run Aspose.Cells Cloud Docker Container

The Docker technology is designed to automate the deployment of the applications by using lightweight containers. Developers can use a Docker Container to wrap up an application with all of its libraries and dependencies and deploy everything as a single package.

Aspose.Cells Cloud team has published the Docker Container on Docker Hub to facilitate the Docker users. The following sections will guide you on how to run Docker commands or write configuration in a Yaml file for the Docker compose tool.

Container configuration

Required volumes

Mount path in container Description
C:\fonts Folder with fonts, which will be used to render documents
C:\data File storage folder

Parameters

Name Description
LicensePublicKey Public key of the license
LicensePrivateKey Private key of the license

If “License” parameters are omitted, the app will work in trial mode.

1. Pull Aspose.Cells Cloud Image

# Pull Aspose.Cells Cloud Image latest version
docker pull aspose/cells-cloud:latest
# Pull Aspose.Cells Cloud Image  version on windows server 2019
docker pull aspose/cells-cloud:ltsc2019.25.9.0 
# Pull Aspose.Cells Cloud Image  version on windows server 2022
docker pull aspose/cells-cloud:ltsc2022.25.9.0 

# Pull Aspose.Cells Cloud Image  version on windows 11
docker pull aspose/cells-cloud:ltsc2019.25.9.0 

2. Configurations for Docker-Compose Tool

You can write the following configurations in your yaml file for Docker-Compose tool:

AsposeCellsCloud:
      image: aspose/cells-cloud
      ports: ["5000:80"]
      volumes: [
        "C:/Windows/Fonts:C:/Windows/Fonts",
        "c:/data:c:/data",
      ]
      environment:
        "LicensePublicKey": "yourKeyHere"
        "LicensePrivateKey": "yourKeyHere"

3. Run a Docker container using command line

You can simply run the following docker command after pulling the container from Docker Hub.

docker run   -e "LicensePublicKey=public_key" -e "LicensePrivateKey=private_key" -v c:/data:c:/data  -v C:/Windows/Fonts:C:/Windows/Fonts -p 80:5000   aspose/cells-cloud