This template and Dockerfile can be used with Control Center to deploy and manage an ElasticSearch cluster of any size across any number of physical hosts.
The image has already been built and pushed to Docker Hub, but you can also build it yourself:
docker build -t MYHUBUSER/elasticsearch .
If you do this, don't forget to change the ImageID field in elasticsearch/service.json to match the image name and tag you used.
Add the service template to your Control Center installation:
serviced template compile elasticsearch | serviced template add
Deploy the application template in the Control Center UI.
The ElasticSearch API is exposed via the elasticsearch
virtual host. Hit
https://elasticsearch.myhost
in your browser (you might have to add it to
/etc/hosts or DNS) to access it, or configure a new virtual host in the Control
Center UI.
Simply edit the service and increase the number of instances in the Control Center UI. The new nodes will automatically join the cluster.