Default ES configuration for docker container



What is the best way to configure ES index template with mappings in docker container? I expected to use template file but it seems that from version 2 it is not possible. Executing http request also won't work because on container creation process doesn't start. It could be done on each container launch via script which will start ES and execute HTTP request to it but it looks really ugly.

(system) #2