I saw other threads on this, but they closed without resolution. I have a post on StackOverflow and it's entirely possible I'm missing something obvious, but I haven't been able to get multiple hosts to work with docker compose.
List of failures:
  ELASTICSEARCH_HOSTS: ['http://es01:9200','http://es02:9200','http://es03:9200','http://es04:9200']
  ELASTICSEARCH_HOSTS="['http://es01:9200','http://es02:9200','http://es03:9200','http://es04:9200']"
  - ELASTICSEARCH_HOSTS=['http://es01:9200','http://es02:9200','http://es03:9200','http://es04:9200']
  - ELASTICSEARCH_HOSTS="["http://es01:9200","http://es02:9200","http://es03:9200","http://es04:9200"]"
  ELASTICSEARCH_HOSTS:
    - "<host1>"
    - "<host2>"
What is the syntax for multiple hosts? Given the confusion surrounding this problem, suggest updating the docs here with the syntax.