DEV Community

Discussion on: Using variables in Docker-Compose

Collapse
 
nyagarcia profile image
Nya

Thank you :) Are you sure? If you take a close look, all three GitHub gists are different. The first two are very similar though, I can understand the confusion :D

The difference is in the value of the environment variables. In the first example, their values are hard-coded. In the second example, they are obtained from the .env file via string interpolation.