# /var/discourse 和 /var/docker 文件夹可以位于不同的卷上吗？

**URL:** https://meta.discourse.org/t/can-the-var-discourse-and-var-lib-docker-folders-be-on-different-volumes/401332
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [2026 年4 月 23 日 07:08 UTC](https://meta.discourse.org/t/can-the-var-discourse-and-var-lib-docker-folders-be-on-different-volumes/401332 "2026-04-23T07:08:28Z")
**Posts on this page:** 1
**Showing post:** 6

<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: [2026 年4 月 28 日 18:17 UTC](https://meta.discourse.org/t/can-the-var-discourse-and-var-lib-docker-folders-be-on-different-volumes/401332/6 "2026-04-28T18:17:17Z")

</div>

> [@Dannii](#):
>
> 所以你不认为我会注意到性能下降？

哦。我漏掉了那部分。我认为块存储可能速度较慢。如果是这种情况，那么你应该将数据库和 Docker 放在更快的存储上，而将上传内容放在较慢的存储上。如果你使用了 CDN，可能就不重要了。更好的做法是，按照[为上传配置兼容 S3 的对象存储提供商](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)中的描述，将上传内容和资源放在 S3 上。

---

_[View the full topic](https://meta.discourse.org/t/can-the-var-discourse-and-var-lib-docker-folders-be-on-different-volumes/401332)._
