# 通过 docker 部署自定义 Discourse 仓库

**URL:** https://meta.discourse.org/t/deploy-custom-discourse-repository-via-docker/293422
**Category:** Self-hosting
**Tags:** docker
**Created:** [2024年一月30日 07:21 UTC](https://meta.discourse.org/t/deploy-custom-discourse-repository-via-docker/293422 "2024-01-30T07:21:48Z")
**Posts on this page:** 1
**Showing post:** 6

<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年一月30日 09:18 UTC](https://meta.discourse.org/t/deploy-custom-discourse-repository-via-docker/293422/6 "2024-01-30T09:18:24Z")

</div>

从这里开始：

> [@开发 Discourse 插件 - 第 1 部分 - 创建基础插件](https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515):
>
> 在 Discourse 中构建插件其实非常简单，只要你了解一些特殊之处。本文的目标是创建一个插件骨架，并向你介绍基础知识。 你的开发环境 请确保你的电脑上已经运行了 Discourse 的开发环境。我建议你使用 [相应的设置指南](https://meta.discourse.org/tag/dev-install)，完成后再回来继续阅读。 plugin.rbtada 使用 [GitHub - discourse/discourse-plugin-skeleton: Template for Discourse plugins · GitHub](https://github.com/discourse/discourse-plugin-skeleton) 在你的插件目录中创建一个完整的 Discourse 插件骨架 tada 该骨架现已包含在 Discourse 核心中，运行 rake plugin:create[plugin-name] 即可基于该骨架创建插件。 当 Discourse 启动时，它会在 plugins 目录中查找包含 plugin.rb 文件的子目录。plugin.rb 文件有两个作用：首先，它是插件的清单，包含插件的必需信息，例如名称、联系方式和描述；其次，它用于初始化运行插件所需的任何 Ruby 代码。 在本例中，我们不会添加任何 Rub…

并查看 #Customization > Plugin 中数百个示例的代码

---

_[View the full topic](https://meta.discourse.org/t/deploy-custom-discourse-repository-via-docker/293422)._
