# 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:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 13, 2018, 5:21pm UTC](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107/4 "2018-04-13T17:21:15Z")

</div>

Is there some way to pass a site setting to Discourse through an Environment variable? (That’s what he seems to be asking).

My best solution to what I think his problem is is to use my [discourse-settings-uploader](https://github.com/pfaffman/discourse-settings-uploader), but the problem there is that I’ve not yet found a way to call `create_master_key` from a command line outside the container.

---

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