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 inelasticsearch.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.