Skip to content

Conversation

@ttugrul
Copy link
Contributor

@ttugrul ttugrul commented Dec 25, 2025

Motivation

When using Docker with bridge or custom networks, services need explicit port bindings to be accessible. Currently there's no way to configure the bind address for these port mappings.

Modification

  • Added portBindAddress field to DockerConfiguration
  • Added AUTO_PORT_BIND_ADDRESS constant for automatic resolution from service host address
  • Implemented port binding logic in DockerizedService that binds TCP/UDP ports when not using host network mode
  • Fixed missing nodeHostOverride copy in the configuration builder

Result

Users can now configure portBindAddress in their docker configuration:

  • Set to a specific IP for explicit binding
  • Set to "auto" to resolve from the service's host address
  • Leave null to disable port bindings (current behavior)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant