# Criando uma imagem do Discourse sem incluir a senha do banco de dados?

**URL:** <https://meta.discourse.org/t/building-a-discourse-image-without-baking-in-the-database-password/106538>\
**Category:** Self-hosting\
**Created:** [Janeiro 14, 2019, 11:28pm UTC](https://meta.discourse.org/t/building-a-discourse-image-without-baking-in-the-database-password/106538 "2019-01-14T23:28:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [Janeiro 15, 2019, 12:05pm UTC](https://meta.discourse.org/t/building-a-discourse-image-without-baking-in-the-database-password/106538/5 "2019-01-15T12:05:40Z")

</div>

As @brahn said set that ENV var to empty in the latest hook. The run hook should work.

You can also build another image using the bootstrapped one as a base and empty that variable in a docker file.

---

_[View the full topic](https://meta.discourse.org/t/building-a-discourse-image-without-baking-in-the-database-password/106538)._
