We are using the official Docker images for ElasticSearch, and for development purposes, we would like the single node cluster to initialize with predefined indices. Is this possible?
The same way were you put SQL script in a certain location in the MYSQL image, it gets executed.
We can export the mapping via http:<ES_HOST>/<index_name>/_mapping
And use that in the body of a curl command as mentioned here