Starting the Web server Docker container by retrieving parameters from container environment variables

Learn about how to start the Web server Docker container by specifying CONFIGURE_MODE=EnvVariables.

Mandatory parameters

Parameter name Value
TX_HOST The Transaction server hostname.

Optional parameters

Parameter name Value
TX_PORT The Transaction server port. The default value is 5443.
HCL Commerce Version 9.1.14.0 or laterEXTERNAL_DOMAIN_NAME The external domain name for the Web server Docker container (ts-web). For example, mycompany.com.
HCL Commerce Version 9.1.14.0 or laterEXTRA_CSP_SOURCE Specify additional host names for the Content Security Policy (CSP) for the Web server Docker container (ts-web). The format of this value must conform to the content security policy source list standard.

Failure to specify CSP correctly will trigger Cross Site Scripting (XSS) protection in browsers. Third-party analytics, images, style sheets, or other scripts that are hosted on a secondary domain or third-party domain will fail to load in the browser, resulting in features of your site failing otherwise gracefully.

The default values supplied by HCL Commerce include your domain (EXTERNAL_DOMAIN_NAME), as well as analytics and file hosting from Google. Additional hostnames supplied via this variable include frame-ancestors, frame-src, default-src, child-src, script-src, connect-src, style-src, font-src and img-src definitions.

For example:
*.seconddomain.com
or
*.seconddomain.com *.thirdpartydomain.com

Code example

docker run -it -e LICENSE=accept  \
    -e CONFIGURE_MODE=EnvVariables
    -e TX_HOST=<Transaction server hostname> \
    <Web Docker image>