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.
  • HCL Commerce Version 9.1.14.0 or laterDue 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.

Procedure

  1. Set up a demo HCL Commerce production environment using the Docker Compose deployment method.
  2. 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.
    HCL Commerce Version 9.1.14.0 or later
    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=dbPort
    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=443
          - DBHOST=dbHost
          - DBNAME=dbName
          - DBUSER=dbUser
          - DBPASS=dbPassword
          - DBPORT=dbPort
  3. 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.
    1. HCL Commerce Version 9.1.14.0 or laterAdd 80:8080 and 443:8443 so that the local store can be accessed by site users.

      For releases of HCL Commerce 9.1.0.0 to 9.1.13.0:

      Add 80:80 and 443:443 so that the local store can be accessed by site users.
    2. Add 8006:8006 and 8007:8007 so 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:

    HCL Commerce Version 9.1.14.0 or later
    ports:
    - 8000-8002:8000-8002
    - 8004:8004
    - 80:8080
    - 443:8443
    - 8006-8007:8006-8007
    

    For 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
    

Results

Your custom Docker images, containing your migrated local store, are used in a demo production environment. From here you can observe your migrated store, and test all site functionality. The same Docker images that you have created can now be used in a live production environment.