Next.js store Docker container startup with Vault parameter retrieval
Learn about how to start the Next.js store Docker container container by
specifying CONFIGURE_MODE=Vault.
Mandatory environment variables
These are the mandatory environment variables that you must specify to configure the Next.js store Docker container to retrieve additional parameters from Vault.
| Environment variable name | Description | Comments |
|---|---|---|
| TENANT | The name of the group that contains your set of environments. For example, MyCompany. | Container environment variable. This can be specified in the
values.yaml configuration file under
common.tenant. |
| ENVIRONMENT | The name of the environment. For example, Non-production. | Container environment variable. This can be specified in the
values.yaml configuration file under
common.environmentName. |
| ENVTYPE | The environment type. Accepted values are auth and live. | Container environment variable. This can be specified in the
values.yaml configuration file under
common.environmentType. |
| VAULT_TOKEN | The Vault token to use to connect to Vault and request certification from Vault PKI. | Container environment variable. This can be specified in the
values.yaml configuration file under
common.vaultToken. |
| VAULT_URL | The Vault URL to use to connect to Vault and request certification from Vault PKI. | Container environment variable. This can be specified in the
values.yaml configuration file under
common.vaultUrl. |
| CONFIGURE_MODE | Vault | Container environment variable. This can be specified in the
values.yaml configuration file under
common.configureMode. |
| OTEL_JAVAAGENT_ENABLED | Optional – true or false | To enable the Open Telemetry java agent. |
Optional environment variables
These are the optional environment variables that you can specify to configure the Next.js store Docker container.
Mandatory Vault configuration variables
These are the mandatory Vault key values that you must specify within Vault to configure the Next.js store Docker container to use the Vault configuration mode.
| Vault path | Description | Reference environment variable |
|---|---|---|
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/reactStoreMapApiKey |
The Google Maps API key that is used by the React store. Note: A placeholder value can be used to enable you to
start the container. For example,
google-api-key. |
MAP_API_KEY |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/logLevel/nextjs-app |
Log level. Values can be :-
|
LOG_LEVEL |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/traceSpecification/nextjs-app |
Trace detail. | TRACE_DETAIL |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/logSensorString/nextjs-app |
Log sensor string. | LOG_SENSOR_STRING |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/storeConfigurationFile/nextjs-app |
Store configuration file. | STORE_CONFIG_FILE |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/${ENVTYPE}/startupArgument/nextjs-app |
Startup argument. | STARTUP_ARGUMENT |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/nodeInstanceNumber/nextjs-app |
Node instance number. | NODE_INSTANCE_NUMBER |
${TENANT}/${ENVIRONMENT}/inventoryOrigin |
Inventory origin if |
INVENTORY_ORIGIN |
Optional Vault configuration variables
These are the optional Vault key values that you can specify within Vault to configure the Next.js store Docker container when used with the Vault configuration mode.
| Vault path | Description | Reference environment variable |
|---|---|---|
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/domainName
|
Domain name. Default:
|
DOMAIN_NAME |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/${ENVTYPE}/queryHost |
Search host. If BLANK or not specified than it will fallback to below : value
|
SEARCH_HOST |
${VAULT_URL}/${TENANT}/${ENVIRONMENT}/${ENVTYPE}/txHost |
TX host. If BLANK or not specified than it will fallback to below value:
|
TX_HOST |