Ravi Sir's Cards › Chapter 53: Docker Compose Tutorial: Services, depends_on Healthchecks, Env Files, Profiles, Overrides, Scaling and Every Command
.env vs env_file?
.env vs env_file? .env is read by Compose for ${VAR} substitution in YAML. env_file sends variables into the container.

Lesson: 53.4 Environment files, interpolation and secrets · मराठी card