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. |
EXTERNAL_DOMAIN_NAME |
The external domain name for the Web server Docker container (ts-web). For example,
mycompany.com. |
EXTRA_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
For
example: or |
Code example
docker run -it -e LICENSE=accept \
-e CONFIGURE_MODE=EnvVariables
-e TX_HOST=<Transaction server hostname> \
<Web Docker image>
EXTERNAL_DOMAIN_NAME