# 创建第二个类似 app.yml 的文件是否足以支持多站点？

**URL:** https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362
**Category:** Self-hosting
**Tags:** hosting
**Created:** [2020年三月24日 07:55 UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362 "2020-03-24T07:55:41Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [2020年三月24日 11:52 UTC](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362/2 "2020-03-24T11:52:37Z")

</div>

是的，你可以这样做。但我建议花点时间 [将 Web 和数据容器分离](https://meta.discourse.org/t/how-to-move-from-standalone-container-to-separate-web-and-data-containers/29413)，这样你只需要运行一个 Redis 实例和一个 Postgres 实例。但如果你不在意浪费一些内存，也不需要在重建时减少停机时间的好处，那么你的想法也是可行的。

与多站点设置相比，这会占用稍多的内存，但允许你拥有不同的插件集。

---

_[View the full topic](https://meta.discourse.org/t/is-creating-a-second-app-yml-like-file-enough-for-multisite/145362)._
