Scripts to run and interact with a local containerised ElasticSearch instance.
Intended for local dev and not for production environments!
Uses a local data volume to store the data.
See .env
for details of the set up.
- Docker 1.12.x+
- On Mac: Docker for Mac
Note: make sure you run scripts from the root of your Rails app.
- Create the container for the first time
bin/elasticsearch/create
- Stop the container when you don't need it
bin/elasticsearch/stop
- Start the container when you do need it again
bin/elasticsearch/start
- Destroy the container if you want to recreate it or just don't need it anymore (note: the local data volume will NOT be deleted)
bin/elasticsearch/destroy
Run curl http://127.0.0.1:9200/_cat/health
to check status.