Can I automate the creation of an index template using docker compose?

I have setup a basic docker-compose.yml with the official Elasticsearch and Kibana images.

I can easily run a PUT command to setup an index template and it works.

So then my last step is to automate the PUT command into the creation of my container.

I don't know if what I am trying is possible or advisable. I do not feel like adding a manual step to setup a development environment is a good idea.

Thank you for your time.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.