GoConqr has a new look! Let us know what you think.

Module 12 of 15 · Text

Trabalhando com variáveis de ambiente no Docker-Compose

Thiago Figueiredo

Utiliza-se basicamente, o mesmo processo do Dockerfile.

Exemplo:

   environment: 

      ENV_01: valor

 

   environment: 

      - ENV_01=valor

 

Para listar as variáveis de ambiente do cotainer:

   # docker exec 'id_container' printenv

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?