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

Suggestion: Make docker-compose.yml use environment variables or .env #1091

Open
gwpl opened this issue Oct 30, 2024 · 1 comment
Open

Suggestion: Make docker-compose.yml use environment variables or .env #1091

gwpl opened this issue Oct 30, 2024 · 1 comment

Comments

@gwpl
Copy link

gwpl commented Oct 30, 2024

with changes like

<<<<<<< 
      - OPENAI_API_KEY=<your_openai_key>
=======
      - OPENAI_API_KEY=${OPENAI_API_KEY}
>>>>>>>

one can make docker-compose.yml to use environment variables or keys from .env , and actually using .env (and having it in .gitignore) would be very elegant way .

@suchintan
Copy link
Contributor

Very interesting idea. We went with our current approach to make it easier to prototype, but this comes with the risk of accidentally committing your API keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants