Elasticsearch errors while running

So what is the complete and exact docker-compose file you are using?

Please read this about how to format.