spec/devcontainerjson-reference.md at main · devcontainers/spec
https://github.com/devcontainers/spec/blob/main/docs/specs/devcontainerjson-reference.md?plain=1#L55
https://github.com/devcontainers/spec/blob/main/docs/specs/devcontainerjson-reference.md?plain=1#L55
The default
.env
file is picked up from the root of the project, but you can useenv_file
in your Docker Compose file to specify an alternate location.
The env_file field in the docker-compose.yml causes the .devcontainer to fail on creation · Discussion #27158 · community
https://github.com/orgs/community/discussions/27158
https://github.com/orgs/community/discussions/27158
Discussions · Codespaces · community
https://github.com/orgs/community/discussions/categories/codespaces?discussions_q=category%3ACodespaces+env_file
https://github.com/orgs/community/discussions/categories/codespaces?discussions_q=category%3ACodespaces+env_file