-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix: docker-compose non-dev #25055
fix: docker-compose non-dev #25055
Conversation
|
||
# database engine specific environment variables | ||
# change the below if you prefer another database engine | ||
DATABASE_PORT=5432 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
EXAMPLES_HOST = os.getenv("EXAMPLES_HOST", "db") | ||
EXAMPLES_PORT = os.getenv("EXAMPLES_PORT", "5432") | ||
EXAMPLES_DB = os.getenv("EXAMPLES_DB", "examples") | ||
DATABASE_DIALECT = os.getenv("DATABASE_DIALECT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is acceptable. The only other formulation I can think is having Python parse the .env-non-dev
file to read the fallbacks from there. It seems like the file adheres to the configparser format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke with @michael-s-molina offline who confirmed that the Docker variables are environment variables and thus my previous comment can be ignored.
(cherry picked from commit 7317d9c)
SUMMARY
Fixes
docker-compose -f docker-compose-non-dev.yml up
error reported here.Follow-up of #25003
TESTING INSTRUCTIONS
Make sure
docker-compose -f docker-compose-non-dev.yml up
is working.ADDITIONAL INFORMATION