Skip to content

Deploys elasticsearch cluster to local docker swarm

Notifications You must be signed in to change notification settings

vitalcode/events-deploy

Repository files navigation

Deploys elasticsearch cluster to local docker swarm.

Set enviromental varibles:

EVENTS_APP_USER - admin user name EVENTS_APP_PASSWORD - admin user password

Run docker swarm, using docker-in-docker approch

./swarm-start.sh

Docker swarm Visualiser is accessible on http://localhost:8000/.

Deploy elasticsearch service

./swarm-deploy.sh

The elasticsearch service will now be listening on http://localhost:9200/.

A web front end for an elasticsearch cluster elasticsearch-head, is available on http://localhost:9200/_plugin/head/.

Add additional node to docker swam cluster (to test service elasticity)

./swarm-add-node.sh

Another node will be added to the cluster. Elasticsearch is deployed as a global service and will be automatically deployed on the new node.

To remove swarm cluster

./swarm-stop.sh

About

Deploys elasticsearch cluster to local docker swarm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages