# É possível passar variáveis de ambiente customizadas para o container Docker?

**URL:** <https://meta.discourse.org/t/is-it-possible-to-pass-custom-environment-variables-to-the-docker-container/162795>\
**Category:** Self-hosting\
**Created:** [Setembro 2, 2020, 12:20pm UTC](https://meta.discourse.org/t/is-it-possible-to-pass-custom-environment-variables-to-the-docker-container/162795 "2020-09-02T12:20:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [Setembro 3, 2020, 10:44pm UTC](https://meta.discourse.org/t/is-it-possible-to-pass-custom-environment-variables-to-the-docker-container/162795/8 "2020-09-03T22:44:47Z")

</div>

Só para avisar, existem [maneiras mais fáceis](https://yaml-multiline.info/) de fazer isso do que atualizar todos os \n diretamente.

Algo assim:

```plaintext
key: |
  ---BEGIN SECRET KEY---
  SHH não leia isso é secreto
  ---END SECRET KEY---

```

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-pass-custom-environment-variables-to-the-docker-container/162795)._
