# 在按照官方 Docker 安装指南设置后，如何用 discourse 源代码进行一些自定义

**URL:** https://meta.discourse.org/t/how-can-i-make-some-customizations-with-the-discourse-source-code-when-set-up-with-official-docker-install-guides/311291
**Category:** Development
**Created:** [2024年六月9日 11:40 UTC](https://meta.discourse.org/t/how-can-i-make-some-customizations-with-the-discourse-source-code-when-set-up-with-official-docker-install-guides/311291 "2024-06-09T11:40:36Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [2024年六月9日 11:40 UTC](https://meta.discourse.org/t/how-can-i-make-some-customizations-with-the-discourse-source-code-when-set-up-with-official-docker-install-guides/311291/1 "2024-06-09T11:40:36Z")

</div>

如果我使用官方的 Docker 安装指南为生产环境设置 Discourse 论坛，我该如何自定义 Discourse 源代码？是制作私有的 Docker 镜像来替换官方镜像还是其他方法？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年六月9日 12:03 UTC](https://meta.discourse.org/t/how-can-i-make-some-customizations-with-the-discourse-source-code-when-set-up-with-official-docker-install-guides/311291/2 "2024-06-09T12:03:54Z")

</div>

使用插件和主题组件。  
您不想管理一个分支。

---

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [2024年六月9日 12:18 UTC](https://meta.discourse.org/t/how-can-i-make-some-customizations-with-the-discourse-source-code-when-set-up-with-official-docker-install-guides/311291/3 "2024-06-09T12:18:57Z")

</div>

嗯，似乎没有其他好办法了。感谢罗伯特。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年六月9日 12:28 UTC](https://meta.discourse.org/t/how-can-i-make-some-customizations-with-the-discourse-source-code-when-set-up-with-official-docker-install-guides/311291/4 "2024-06-09T12:28:55Z")

</div>

你可以做到，但这会非常混乱，最好采用一个允许你从核心进行更新的系统，只需很少的工作（只需点击“升级”）。

有时你的插件可能会破坏构建，但这更容易修复 👍
