Configure email alert action via docker environment variables

Hi,

Is it possible to configure email settings via environment variables?

Docs says:

You configure the accounts Watcher can use to send email in the >xpack.notification.email namespace in elasticsearch.yml .

I know we could set elasticsearch.yml options via docker environment variables but so far this is not working as expected:

      - "xpack.notification.email.account.gmail_account.profile=gmail"
      - "xpack.notification.email.account.gmail_account.smtp.auth=true"
      - "xpack.notification.email.account.gmail_account.smtp.starttls.enable=true"
      - "xpack.notification.email.account.gmail_account.smtp.host=smtp.gmail.com"
      - "xpack.notification.email.account.gmail_account.smtp.port=587"
      - "xpack.notification.email.account.gmail_account.smtp.user=info@mail.info"
      - "xpack.notification.email.account.gmail_account.smtp.password=foo"

Is this possible? I want to avoid as much as possible bind mount the config file.

Anyone on this topic? It seems not possible to configure that way.

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