# Docker-compose with xpack.notification.slack namespace

**URL:** <https://discuss.elastic.co/t/docker-compose-with-xpack-notification-slack-namespace/232224>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 12, 2020, 12:18pm UTC](https://discuss.elastic.co/t/docker-compose-with-xpack-notification-slack-namespace/232224 "2020-05-12T12:18:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maadhav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maadhav/32/46127_2.png) [@maadhav](https://discuss.elastic.co/u/maadhav)\
**Post date:** [May 12, 2020, 12:18pm UTC](https://discuss.elastic.co/t/docker-compose-with-xpack-notification-slack-namespace/232224/1 "2020-05-12T12:18:23Z")

</div>

We are using docker based elasticsearch cluster. Inside docker-compose.yml, we pass all settings under environment key. We do not use elasticsearch.yml.  
We need to setup slack notifications for ES watchers. We have slack channel webhook url. How can we configure xpack.notification.slack namespace using environment key inside docker-compose.yml (please note that elasticsearch.yml is not being used)?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 9, 2020, 12:25pm UTC](https://discuss.elastic.co/t/docker-compose-with-xpack-notification-slack-namespace/232224/2 "2020-06-09T12:25:14Z")

</div>

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