Deploy your custom ts-app and ts-web Docker images
In this lesson, you deploy the custom Docker images for your Transaction server (ts-app) and Transaction web server (ts-web).
These images can then be used in a live production environment deployment to serve
site traffic.
Important:
- This task covers the minimum requirements for a deployment that is based on Docker Compose. This deployment can be used to preview your migrated local store in a demo production environment. This environment should not be used to serve live traffic.
Due to the fact that web server-based images are now
run by a non-root user, no privileged ports (1024 and below) can be
used. For more information, see HCL Commerce container users and privileges.
- For a better understanding of the HCL Commerce version 9.1 architecture, see HCL Commerce production environment overview.
- For a better understanding of the type of environment that is required for live production use, see Setting up an HCL Commerce production environment.
Procedure
- Set up a demo HCL Commerce production environment using the Docker Compose
deployment method.For information on setting up this environment, see Deploying HCL Commerce Version 9.1 with Docker Compose (for non-production usage).
- For your custom Transaction server Docker image (
ts-app), ensure that you have following deployment parameters correctly defined under the environment section of your docker-compose configuration file.
For releases of HCL Commerce 9.1.0.0 to 9.1.13.0:environment: - CONFIGURE_MODE=EnvVariables - SEARCH_HOST=search-master - STORE_HOST=web (for local store and preview) - STORE_PORT=8443 - DBHOST=dbHost - DBNAME=dbName - DBUSER=dbUser - DBPASS=dbPassword - DBPORT=dbPortenvironment: - CONFIGURE_MODE=EnvVariables - SEARCH_HOST=search-master - STORE_HOST=web (for local store and preview) - STORE_PORT=443 - DBHOST=dbHost - DBNAME=dbName - DBUSER=dbUser - DBPASS=dbPassword - DBPORT=dbPort -
For your custom Transaction web server Docker image
(
ts-web), modify the ports section of your docker-compose configuration file.This configuration is non-standard, due to the fact that you are using a migrated local store.
Add 80:8080and443:8443so that the local store can be accessed by site users.For releases of HCL Commerce 9.1.0.0 to 9.1.13.0:
Add80:80and443:443so that the local store can be accessed by site users.- Add
8006:8006and8007:8007so that the local store can be accessed through the Store Preview feature of Management Center for HCL Commerce.
Once completed, your ports configuration section will look like the following:

ports: - 8000-8002:8000-8002 - 8004:8004 - 80:8080 - 443:8443 - 8006-8007:8006-8007For releases of HCL Commerce 9.1.0.0 to 9.1.13.0:
ports: - 8000-8002:8000-8002 - 8004:8004 - 80:80 - 443:443 - 8006-8007:8006-8007