Elasticsearch PHP client throwing exception “No alive nodes found in your cluster”

Beware of indentation in the config file. You have a space before cluster name.

You must configure network.host first. Start ES and read its logs. It will tell you what you need to fix.

Probably https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html