docker / docker/compose

allow optional env_file for include top level

Open
#13,719 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/0-triage
Dominant language
Go
Stars
38.2k
Forks
5.8k
Avg merge
2d 14h
Merged PRs (30d)
55

Description

Description

in #3560 optional env files are allowed at a service level https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#additional-information

however this env file https://docs.docker.com/reference/compose-file/include/#env_file doesnt support being optional would it be possible to also make include level env_files optional using the same syntax?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the include-level env_file handling and compare it with the existing service-level optional env_file behavior. Done means include-level env_file entries accept the same optional syntax and preserve current behavior for required files, with tests covering both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, go
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.