StackPanel

ports

Configuration options for stackpanel.ports

Ports Options

ports.base-port

The computed base port for this project

PropertyValue
Type16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default3600
Read Onlytrue

ports.enable

Whether to enable Automatic port assignment.

PropertyValue
Typeboolean
Defaulttrue

Example:

true


ports.project-name

Project name used for port computation. Set this to match your project name.

PropertyValue
Typestring
Default"default"

Example:

"myapp"


ports.service

Computed service information by key. Access: config.stackpanel.ports.service.POSTGRES.port

PropertyValue
Typeattribute set of attribute set of unspecified value
Default{ }
Read Onlytrue

ports.services

Attrset of infrastructure services that need ports. Each service gets a deterministic port based on project name + service key. Provided via STACKPANEL_SERVICES_CONFIG (JSON).

PropertyValue
Typeattribute set of (submodule)
Default{ }

Example:

{
  POSTGRES = { name = "PostgreSQL"; };
  REDIS = { name = "Redis"; };
  MINIO = { name = "Minio"; };
  MINIO_CONSOLE = { name = "Minio Console"; };
}

ports.services.<name>.name

Human-readable name for display (defaults to attrset key)

PropertyValue
Typestring
Default"‹name›"

Example:

"PostgreSQL"


On this page