# Bootstrapping a discourse docker image with SSO URL as environment variable

**URL:** https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107
**Category:** SSO
**Created:** [April 11, 2018, 7:05pm UTC](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107 "2018-04-11T19:05:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 16, 2018, 2:59am UTC](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107/5 "2018-04-16T02:59:27Z")

</div>

> [@pfaffman](#):
>
> Is there some way to pass a site setting to Discourse through an Environment variable?

> <https://github.com/discourse/discourse/blob/main/config/site_settings.yml#L12-L14>

So… for example per: [discourse/config/site\_settings.yml at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/config/site_settings.yml#L12-L14)

```plaintext
env:
   DISCOURSE_NOTIFICATION_EMAIL: 'bla@bla.com'

```

Will set `SiteSetting.notification_email` to `bla@bla.com`

---

_[View the full topic](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107)._
