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.

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.
    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. 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:

    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.