# 直接从 \`app.yml\` 进行初始配置（discourse-docker / INSTALL-cloud.md）

**URL:** https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488
**Category:** Self-hosting
**Created:** [2019年一月14日 12:45 UTC](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488 "2019-01-14T12:45:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![consideRatio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/consideratio/32/126623_2.png) [@consideRatio](https://meta.discourse.org/u/consideRatio)
#### Post date: [2019年一月14日 12:45 UTC](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488/1 "2019-01-14T12:45:23Z")

</div>

Thank you for creating discourse and making it open source! It is great!

**UPDATE** : Wiser by finding the name `site-settings`, I found this related question: [Docker deployment with custom site\_settings.yml](https://meta.discourse.org/t/docker-deployment-with-custom-site-settings-yml/31914)

I followed the [INSTALL-cloud.md guide](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) to install Discourse. Then I logged in and did various configurations as an administrator in `Settings`. Now I wonder if it is possible for me to do this directly from `app.yml` or similar?

For example, is it possible to configure the following options directly from `app.yml` or something else I’m in control of during the deployment process rather than post-deployment? The settings seem to be referred to as [`site-settings`](https://github.com/discourse/discourse/blob/master/config/site_settings.yml).

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/4/742cb9328c21cc947d4faf88addc9a97f5ccd79a.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年一月14日 15:15 UTC](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488/2 "2019-01-14T15:15:12Z")

</div>

The app.yml you mention shows you how to do it in the second to last line.

You can extend the example there for any site setting.

---

<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: [2019年一月15日 00:50 UTC](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488/3 "2019-01-15T00:50:20Z")

</div>

You don’t really say what problem you’re solving, only asking for a way to do something, that might not actually be the best solution to your problem.

Another way to get settings set is this [settings uploader](https://github.com/pfaffman/discourse-settings-uploader).

---

<div class="post-metadata">

### Author: ![consideRatio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/consideratio/32/126623_2.png) [@consideRatio](https://meta.discourse.org/u/consideRatio)
#### Post date: [2019年一月21日 14:31 UTC](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488/4 "2019-01-21T14:31:32Z")

</div>

Thank you @Falco and @pfaffman both were excellent answers that helped me out! 😃

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年二月20日 14:31 UTC](https://meta.discourse.org/t/initial-configuration-directly-from-app-yml-discourse-docker-install-cloud-md/106488/5 "2019-02-20T14:31:36Z")

</div>

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