devcontainers / devcontainers/cli

Support --env-file flag for docker compose usage

Open
#483 3 comments 7 reactions 0 assignees View on GitHub
feature-request
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

Currently the devcontainer.json spec does not allow for me to specify an .env file for usage in the CLI:
https://docs.docker.com/compose/environment-variables/set-environment-variables/#substitute-with---env-file

This would be really useful, as I currently cannot rely on a root .env file as suggested by the docs, due to collisions with other devs/IDEs and a desire to not pollute each other's ways of working, yet would still like to make use of env var substitution features inside of common .yml files whenever I am running them through the devcontainer stack

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.