-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Modify db docker service to use the env file #437
Conversation
2cc0bd9
to
5e12156
Compare
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.
Thanks for working on this!
I slack messaged Ethan about the sqlite. I think we need to wait for his response to determine how to name the env variables. But, ultimately, we want to get rid of the docker-compose.yml
variables like you did here.
|
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.
Sorry I wasn't more clear before. I was also not thinking clearly about the scope of this issue. We're just trying to remove the hardcoded lines in the compose file. Since the project had support for sqlite, we should just let it keep doing that and add a workaround to do both. I wrote the details on what to do in the comments.
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 not too obvious to test, but if you copied app/.env.docker-example
to app/.env.docker
and ran ./scripts/buildrun.sh
, it actually doesn't run. I put the reason for that in the comments. Thanks for working through this!
294192f
to
3159fdc
Compare
3159fdc
to
b0ffb25
Compare
for more information, see https://pre-commit.ci
I'm not sure what this refers to, but the code changes look good and is working right now.
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.
Thanks for contributing these changes! The code looks good and it's running well.
* modifed db docker service in docker-compose.yml to use the env file * updated postgres settings for local development in env.docker-example
Fixes #309
What changes did you make?
docker-compose.yml
file to.env.docker-example
env_file: - ./app/.env.docker-example
indocker-compose.yml
settings.py
) code to use the database variable names that the db container usesWhy did you make the changes (we will use this info to test)?
docker-compose.yml
file