Multiline config parameter to single line env variable

Can this be told to ES as a env variable somehow? I'd like to set this in docker-compose.yml instead of mounting a file.

type: http
host: ["http://es-mon-1:9200", "http://es-mon2:9200"]
auth.username: remote_monitor
auth.password: changeme

I did try this, but it didn't work:

  • "xpack.monitoring.exporters={id1:{type: http, host: [""http://elasticsearch_monitor:9200""]}}"

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