Docker and Elasticsearch – Date ingestion not working

Docker Compose YML

      - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
      - ./data:/usr/share/elasticsearch/data

I have a .json file in my data dir. I run docker-compose up and nothing gets persisted within ES.

What exactly needs to be done here? I’m running Docker on Mac. I’ve tried various .json files, to no avail.

Source: StackOverflow