Closed Madh93 closed 3 years ago
Hi,
This is a possible implementation of #31 to bind the Edge and ElasticSearch ports to a custom port using the @LocalstackDockerProperties annotation:
@LocalstackDockerProperties
Changes
RunCommand#withExposedPorts
"4567"
":4567"
"9876:4567"
portEdge
portElasticSearch
Examples
Example of custom ports:
@LocalstackDockerProperties(portEdge = "45660", portElasticSearch = "45710", services = {"dynamodb"}) // public class ...
Example of random ports (alternative to the deprecated randomizePorts property):
randomizePorts
@LocalstackDockerProperties(portEdge = ":4566", portElasticSearch = ":4571", services = {"dynamodb"}) // public class ...
Example of default ports (4566 and 4571):
4566
4571
@LocalstackDockerProperties(services = {"dynamodb"}) // public class ...
Looks great, thanks for this enhancement @Madh93 !! We'll release a new version to Maven Central shortly.. Thanks
Hi,
This is a possible implementation of #31 to bind the Edge and ElasticSearch ports to a custom port using the
@LocalstackDockerProperties
annotation:Changes
RunCommand#withExposedPorts
to pass ports like:"4567"
,":4567"
or"9876:4567"
portEdge
andportElasticSearch
propertiesExamples
Example of custom ports:
Example of random ports (alternative to the deprecated
randomizePorts
property):Example of default ports (
4566
and4571
):