Start Elasticsearch with single-node discovery type
See gh-15441
This commit is contained in:
parent
47c953ab13
commit
62fbf48446
|
|
@ -31,7 +31,8 @@ public class ElasticsearchContainer extends Container {
|
|||
public ElasticsearchContainer() {
|
||||
super("elasticsearch:6.4.3", 9200,
|
||||
(container) -> container.withStartupTimeout(Duration.ofSeconds(120))
|
||||
.withStartupAttempts(5).addExposedPort(9300));
|
||||
.withStartupAttempts(5).withEnv("discovery.type", "single-node")
|
||||
.addExposedPort(9300));
|
||||
}
|
||||
|
||||
public int getMappedTransportPort() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue