# 在服务器之前用 Docker 测试软件时，试图安装 Discourse 吗？

**URL:** <https://meta.discourse.org/t/trying-to-install-discourse-on-docker-before-server-just-testing-software/366503>\
**Category:** Self-hosting\
**Tags:** unsupported-install, docker\
**Created:** [2025年五月16日 20:00 UTC](https://meta.discourse.org/t/trying-to-install-discourse-on-docker-before-server-just-testing-software/366503 "2025-05-16T20:00:40Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [2025年五月17日 03:50 UTC](https://meta.discourse.org/t/trying-to-install-discourse-on-docker-before-server-just-testing-software/366503/8 "2025-05-17T03:50:28Z")

</div>

> [@alex.diker](#):
>
> 最好的方法就是直接运行

推荐的方法是遵循安装说明，删除 postgres 和 redis 的模板，并在环境变量中添加数据库设置。

双容器设置（可以通过向 discourse-setup 添加一个开关来获得）是了解如何获取环境变量的简单方法。

与 Bitnami 相比，它的优点是可以在这里获得帮助，并按照标准说明安装插件。

---

_[View the full topic](https://meta.discourse.org/t/trying-to-install-discourse-on-docker-before-server-just-testing-software/366503)._
