Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support _FILE environment variables in Docker Compose #47

Open
2 tasks
daniel-mader opened this issue May 8, 2024 · 0 comments
Open
2 tasks

Support _FILE environment variables in Docker Compose #47

daniel-mader opened this issue May 8, 2024 · 0 comments
Labels
Request Request a feature

Comments

@daniel-mader
Copy link
Contributor

Description

Allow supplying a file that contains a secret instead of supplying the value directly in the docker-compose.yaml as described in https://docs.docker.com/compose/use-secrets/.

Motivation

We want to support that convention to further enhance the usability and flexibility of the service.

Requirements

  • add parsing logic for env variables that contain a secret and that have the _FILE suffix
  • rename docker-compose.yml to compose.yaml to follow the latest Docker spec

Open Questions

  • How do we treat multiple values for a single secret in a file? (Only take first line? Fail?)
  • Is it possible to have multiple secrets in a single file? Or does each secret need it's own file?

Are you planning to contribute this in a PR?

Yes

@daniel-mader daniel-mader added the Request Request a feature label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request a feature
Projects
None yet
Development

No branches or pull requests

1 participant