Docker-compose with xpack.notification.slack namespace

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)?