REDREDGROUP Document Hub
RDC CloudContainer Engine

Configure environment variables

Add, edit, or import runtime environment variables for an application.

You can set environment variables in the creation form or on an existing container's Environment page. Values are hidden by default in the existing-container view.

Add or edit variables

  1. Open the container and select Environment.
  2. Choose Add environment variable, or edit an existing entry.
  3. Enter the variable name and value. Names use uppercase letters, numbers, and underscores and cannot start with a number.
  4. Keep Use the value literally enabled when the value must be preserved without variable interpolation.
  5. Save the entry, then Restart the container to apply the change.

Empty and multiline values are supported. Use Show / edit multiple lines when entering multiline content. A name can contain up to 255 characters and a value up to 65,536 characters. The Console supports up to 100 variables.

Import a set of variables

Use Developer mode · Import .env to paste KEY=value entries:

NODE_ENV=production
PORT=3000
LOG_LEVEL=info

Quoted values and comments are supported. Imported values are saved literally, without variable expansion. Duplicate names and names already present in the container must be resolved before importing; existing keys are not overwritten.

When importing into an existing container, some entries can succeed before another fails. The editor retains unsaved entries for retry. Restart after the saved changes are complete.

In the creation form, imported variables are added to the draft and applied before the initial deployment.

Verify the change

Confirm that the application behaves as expected after restarting. Check Runtime Log for missing-variable errors, but avoid printing secret values into logs. Changing an environment variable such as PORT does not automatically change domain routing; ensure that Domain & DNS targets the same application port.

On this page