Sep 3, 2018 · 1 min read
I am trying to connect elasticsearch from node. Below is the code snippet.
connection.js
var client = new elasticsearch.Client({
hosts:HOST
}
);
I want to pass the hosts value from docker run. How do I do it?
I am trying to connect elasticsearch from node. Below is the code snippet.
connection.js
var client = new elasticsearch.Client({
hosts:HOST
}
);
I want to pass the hosts value from docker run. How do I do it?