Skip to content

Compose: env variable clarification#25398

Merged
aevesdocker merged 1 commit into
docker:mainfrom
aevesdocker:fix-25337
Jun 19, 2026
Merged

Compose: env variable clarification#25398
aevesdocker merged 1 commit into
docker:mainfrom
aevesdocker:fix-25337

Conversation

@aevesdocker

Copy link
Copy Markdown
Contributor

Description

Closes #25337

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

Signed-off-by: aevesdocker <allie.sadler@docker.com>
@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 7eb60d0
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a352c5f93bb0300082f1ada
😎 Deploy Preview https://deploy-preview-25398--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Jun 19, 2026

@docker-agent docker-agent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

The changes accurately clarify how Docker Compose resolves the project directory for .env file lookup. The rewrite correctly separates the --env-file and .env precedence items, and adds a clear sub-list explaining the three-step project directory resolution (--project-directory-f/--filePWD). Scope is well-preserved and no style violations were found.

@aevesdocker aevesdocker merged commit 2751e99 into docker:main Jun 19, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compose Relates to docker-compose.yml spec or docker-compose binary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve documentation on variable precedence with compose file interpolation

3 participants