# 注入凭据的启动器构建

**URL:** <https://meta.discourse.org/t/launcher-build-with-injected-credentials/164140>\
**Category:** Self-hosting\
**Created:** [2020年九月15日 21:31 UTC](https://meta.discourse.org/t/launcher-build-with-injected-credentials/164140 "2020-09-15T21:31:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexk](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@alexk](https://meta.discourse.org/u/alexk)\
**Post date:** [2020年九月15日 21:31 UTC](https://meta.discourse.org/t/launcher-build-with-injected-credentials/164140/1 "2020-09-15T21:31:28Z")

</div>

你好！

我试图避免将数据库凭据永久存储在任何形式的 yml 文件中。

我原本以为可以采用以下工作流程：

1. 将 `DISCOURSE_DB_PASSWORD` 等选项导出为环境变量，并在 yml 文件中省略它们
2. 根据具体需求，运行 `launcher rebuild web-only.yml` 或 `launcher bootstrap web-only.yml`

然而，当我尝试这样做时，bootstrap 过程显然仍在尝试连接本地数据库。

我想要的做法是否可行？我记得似乎看到过某种关于这种配置可能性的参考。
