# Discourse 是否可以频繁发布无需引导的 Docker 镜像？

**URL:** <https://meta.discourse.org/t/can-discourse-ship-frequent-docker-images-that-do-not-need-to-be-bootstrapped/33205>\
**Category:** Development\
**Created:** [2015年九月14日 07:01 UTC](https://meta.discourse.org/t/can-discourse-ship-frequent-docker-images-that-do-not-need-to-be-bootstrapped/33205 "2015-09-14T07:01:52Z")\
**Posts on this page:** 1\
**Showing post:** 207

<div class="post-metadata">

**Author:** ![wojtek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wojtek/32/511127_2.png) [@wojtek](https://meta.discourse.org/u/wojtek)\
**Post date:** [2025年七月8日 15:16 UTC](https://meta.discourse.org/t/can-discourse-ship-frequent-docker-images-that-do-not-need-to-be-bootstrapped/33205/207 "2025-07-08T15:16:17Z")

</div>

> [@elmuerte](#):
>
> 是的，但这并非目前的运作方式，所以这部分需要改进。你打算如何从 Discourse 管理界面进行此操作？

嗯……我认为这是关键区别所在，“从管理界面更新”有点让人回想起过去，那时你只有“网络托管”和 PHP 解释器，所以一切都围绕这个概念构建。我认为这延续到了 Discourse 的工作方式以及人们期望的管理方式。

> [@elmuerte](#):
>
> 系统没有无限的资源，所以在启动蓝色版本之前，你想减少绿色版本中的 unicorn 工作进程。

嗯，这是我注意到的另一件事——Discourse 非常消耗资源（容器在启动时就开始以惊人的速度消耗资源），所以是的——这可能是一个问题。

> [@featheredtoast](#):
>
> 插件和自定义镜像仍然需要构建，但对于标准的构建，现在使用 compose 已经触手可及——我在这里 [https://github.com/featheredtoast/discourse-docker-compose](https://github.com/featheredtoast/discourse-docker-compose) 做了一个小概念验证实验，供大家参考。

在 Ruby（这是一种主要是解释型而非编译型语言）的上下文中，这些是如何“构建”的？

> [@featheredtoast](#):
>
> 现成的 postgres（或 pgvector）镜像不适用于 Discourse—— **Discourse 需要更改默认配置** ，不通过超级用户连接，支持区域设置，并且需要支持在 Discourse 管理员无需转储/恢复的情况下进行 postgres 升级。

尝试使用现成的解决方案难道不是更好吗？即使是 postgres 配置，也可以通过简单地提供/挂载自定义 `postgresql.conf` 文件来轻松更改，无需完全自定义镜像并烘焙配置……甚至——如果需要，Discourse 可以提供这样的预构建镜像，只需拉取而不是每次都重新构建……

---

_[View the full topic](https://meta.discourse.org/t/can-discourse-ship-frequent-docker-images-that-do-not-need-to-be-bootstrapped/33205)._
