Default Environment Variables

Default Environment Variables

Environment variables store frequently used runtime values and help make applications more portable, flexible, and easier to configure.

Variables can be used to adjust values referenced throughout application code or to control predefined software-stack behaviour. Most platform-certified stacks include default variables for common hosting and runtime settings.

Default Environment Variables List

Variable NameEditableStacksDescription
{SOFTWARE}_VERSIONAllVersion of the specified stack, engine, template, module, or other software component.
ADMIN_USERGlassFish/Payara, WildFly, Couchbase, LiteSpeed Web Server, LiteSpeed ADC, LLSMPAdministrator login for the management console.
ADMINPANEL_ENABLED (PHPMYADMIN_ENABLED)+Databases, LLSMP, LEMPEnables the admin panel with true or 1; other values disable it. Restart required. The value in brackets is deprecated.
APP_FILE+Node.jsMain Node.js application file to launch.
APP_MODULE+Python EngineApplication entry point in module:attribute format; _AUTO_ enables autodetection.
APP_NAME+ .NET CoreTarget application folder or specific .dll file.
ASPNETCORE_URLS+ .NET CoreConfigures the URL used by .NET Core services.
AUTO_OLD_HEAP+Node.jsEnables or disables memory auto-configuration for the maximum old heap size.
CACHE_ENABLED+LLSMP, LEMPEnables or disables the built-in Memcached service. Restart required.
CACHE_MEM_LIMIT+LLSMP, LEMPRAM share reserved for Memcached; 10% by default.
CLONE_ON_SCALE+AllControls whether horizontally added nodes clone the master or are created from scratch.
CP_MEM_LIMIT+LLSMP, LEMPRAM share reserved for the application server; 50% by default.
DASGlassFish/PayaraIndicates whether the layer contains a DAS node.
DB_MEM_LIMIT+LLSMP, LEMPRAM share reserved for MariaDB; 40% by default.
DEFAULT_CLUSTER+LiteSpeed ADCSelects HTTP, AJP, FCGI, or LSAPI proxying; can be disabled.
DOCKER_EXPOSED_PORTAllLists ports from the image EXPOSE instruction opened by the container firewall.
FULL_GC_AGENT_DEBUG+JavaEnables or disables Java GC process debug logging.
FULL_GC_PERIOD+JavaInterval between full GC calls; 900 seconds by default.
G1PERIODIC_GC_INTERVAL+ for OpenJDK 12/13JavaG1 periodic collection interval in milliseconds; 0 disables it.
G1PERIODIC_GC_SYS_LOAD_THRESHOLD+ for OpenJDK 12/13JavaAllows G1 periodic collection below the configured one-minute system load.
GC_SYS_LOAD_THRESHOLD_RATE+ for OpenJDK 12/13JavaMultiplier for G1PeriodicGCSystemLoadThreshold; 0.3 by default.
GEM_HOME+RubyLocations where gems can be found; should include GEM_PATH.
GEM_PATHRubyDefault gem installation path.
GMS_LISTENER_PORTGlassFish/PayaraGroup Management Service listener port.
GO_BUILD_OPTIONS+GoFlags and options used to build the Go application.
GO_RUN+GoExecutable binary name; deployment tries to detect it when omitted.
GO_RUN_OPTIONS+GoFlags and options used to run the Go application.
GOPATHGoGo application deployment folder.
HAZELCAST_CONFIG+GlassFish/PayaraPath to the Hazelcast configuration file.
HOME_DIRGlassFish/Payara, WildFly, Spring Boot, Java Engine, Node.js, Shared Storage, Python EngineContainer home directory.
HOT_DEPLOY+Tomcat, TomEEEnables or disables deployment without application-server restart.
IRBRCRubyPath to the IRB configuration file.
JAVA_ARGS+JavaCustom arguments passed to the application main function.
JAVA_HOMEJava, MavenJava runtime installation directory.
JAVA_OPTS_CONFFILEJava, MavenPath to variables.conf.
JBOSS_HOMEWildFlyWildFly home directory.
JELASTIC_AUTOCONFIG+LiteSpeed Web Server, LLSMP, LiteSpeed ADC, MySQL, MariaDB, PerconaEnables or disables smart auto-configuration based on RAM and CPU.
JELASTIC_EXPOSE+AllControls automatic redirection and can define a specific port.
JELASTIC_MEMORY_AUTOCONFIG+WildFlyEnables or disables WildFly memory auto-configuration.
JELASTIC_PRIORITY_PORTS+GlassFish/PayaraSets the GlassFish HTTP listener port.
LAUNCH_JBOSS_IN_BACKGROUND+WildFlyControls background startup of the application server.
LSWS_MAX_CHILDREN+LLSMP, LiteSpeed Web ServerOverrides the maximum child-process limit.
MASTER_HOSTAllShort hostname of the layer master node.
MASTER_IDAllUnique identifier of the layer master node.
MASTER_IPAllInternal IP address of the layer master node.
MAVEN_DEPLOY_ARTIFACT+MavenArtifact selected for deployment.
MAVEN_OPTS+MavenJVM options used to start Maven.
MAVEN_RUN_ARGS+MavenCustom arguments for the application build.
MAX_OOM_REDUCE_CYCLES+MySQL, MariaDB, PerconaMaximum buffer-pool reduction cycles after OOM restarts; 5 by default.
MY_RUBY_HOMERubyRuby engine directory.
NODE_ENVNode.jsApplication environment such as development, staging, production, or testing.
NODE_OPTIONS+Node.jsNode.js runtime V8 options.
NVM_DIRNode.jsNVM installation path.
ON_ENV_INSTALL+ before creationAllScript or URL executed after environment creation.
OOM_ADJUSTMENT+MySQL, MariaDB, PerconaBuffer-pool reduction after each OOM restart; 10% by default.
OOM_DETECTION_DELTA+MySQL, MariaDB, PerconaLog-analysis interval after restart; 2 seconds by default.
OPEN_INBOUND_PORTS (JELASTIC_PORTS)+ before creationAllCustom firewall ports opened during container creation.
PACKAGE_MANAGER+Node.jsPackage manager used to install dependencies, such as npm or yarn.
PACKAGE_MANAGER_OPTS+Node.jsAdditional package-manager options.
PATHAllDefault shell search path for executable programs.
PHP_MAX_EXECUTION_TIME+PHPMaximum script execution time; 300 seconds by default.
PHP_MEMORY_LIMIT+PHPMaximum memory per script; 25% by default, -1 for unlimited.
PHPFPM_MAX_CHILDREN+NGINX PHPPHP-FPM child worker count; normally based on available CPU cores.
PORT+PythonBind port; redirects TCP 80 or 443 to the selected port.
PORT_4848_TCP_PORTGlassFish/PayaraAdministration console port.
PROCESS_MANAGER+Node.js, Python EngineSelects the process manager, such as npm, pm2, forever, uvicorn, or gunicorn.
PROCESS_MANAGER_FILENode.jsFile containing process-manager startup options.
PROXY_READ_TIMEOUT+NGINX balancer, NGINX PHPBackend read timeout in seconds.
PSWD_FILEGlassFish/PayaraFile containing the administrator password.
REDIRECT_EXCLUDE_PORTS+Node.jsPorts excluded from automatic redirection.
REDIS_COMMANDER+RedisEnables or disables Redis Commander.
REDIS_ENABLED+PHPDeprecated; use CACHE_ENABLED. Controls Redis object caching.
REDIS_SENTINEL+RedisEnables or disables Redis Sentinel.
ROOT_DIRNode.js, Python EngineApplication deployment directory.
RUN_OPTION+ .NET CoreAdditional dotnet run options.
SERVER_WEBROOTLLSMP, LiteSpeed Web ServerApplication deployment directory.
STACK_NAMEAllCurrent stack name.
STACK_PATHAllStack home directory.
STACK_USERAllDefault stack user.
STANDALONE_MODE_CONFIG+WildFlyConfiguration file for standalone WildFly.
TCP_BALANCING+HAProxyEnables or disables proxying to TCP backends.
UPDATE_PACKAGES_ON_RESTART+Node.jsControls automatic package installation after service restart.
UPSTREAM_KEEPALIVE+NGINX balancerValue for the NGINX upstream keepalive directive.
VERT_SCALING+JavaEnables or disables the default Java GC agent.
WAF+LLSMP, LiteSpeed Web ServerEnables or disables the LiteSpeed Web Application Firewall.
WEB_ROOTGoDeployed application path.
WEBROOTPHP, Tomcat/TomEE, GlassFish/Payara, Python EngineApplication deployment directory.
WORKER_PROCESSES+NGINX balancerNGINX worker-process count or autodetection mode.
WORKERS+Python EngineNumber of worker processes; nproc uses the CPU count.
WP_PROTECT+LLSMP, LiteSpeed Web Server, LiteSpeed ADCWordPress brute-force protection action.
WP_PROTECT_LIMIT+LLSMP, LiteSpeed Web Server, LiteSpeed ADCWordPress brute-force protection limit; 10 by default.

Editable and Read-Only Variables

“+” variables: These values can be adjusted to customise the container. A service or container restart is generally required to apply the change.
“-” variables: These are informational or platform-managed values. Changing them usually does not apply a real container change and can break internal platform logic.

Common Variables for Managed Stacks

  • {SOFTWARE}_VERSION — current software version.
  • CLONE_ON_SCALE — controls whether scaled nodes clone the master.
  • DOCKER_EXPOSED_PORT — lists image ports opened by the firewall.
  • JELASTIC_EXPOSE — manages automatic redirection and port selection.
  • MASTER_HOST, MASTER_ID, and MASTER_IP — identify the layer master.
  • ON_ENV_INSTALL — runs a script after environment creation.
  • OPEN_INBOUND_PORTS — opens custom firewall ports during creation.
  • PATH — default executable search path.
  • STACK_NAME, STACK_PATH, and STACK_USER — describe the current managed stack.

What’s next?

  • Custom Environment Variables
  • Java Options and Arguments
  • Container Variables
  • Environment Configuration