How to use Docker .env file

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Thanks. Exactly what I was looking for.

mubafaw
Автор

Can't I pass the whole.env in dock compose up command line?

pradipspeaks
Автор

@1:55 when defining the environment variable for example, you used
- MYSQL_USER="${DB_USER}"
in some compose yml file, I see environment variables are defined in slightly different format, using the one in your video
MYSQL_USER: ${DB_USER}
Are these 2 formats both valid?
You enclosed the value, DB_USER with " ". Is " " necessary to set the value to the environment variable? W/O these quotes, will the system flag an error?

sorcererstone
Автор

Thanks. One thing I'm still not clear on is the name of the file.

I'm used to the naming convertion _filename.extension_ so calling a file nothing more than _.env_ is something I'm not used to.

nmarks
Автор

When you need the video to be over 30 seconds:

inferious