-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add bind mounts to docker compose dev setup + migration command override #6488
Add bind mounts to docker compose dev setup + migration command override #6488
Conversation
b27a59c
to
ed0ff32
Compare
I just rebased to Also added default values for One of the annoying things about using a .env file named Values in |
Yeah @spwoodcock i recently had to dig into this, As, Bash from techwd, had issues trying to set up tasking-manager on his server.
The warning was due to the vars not setting up in compose file. Although not an issue as This caused migration container to fail, resulting in I think we should replace this with something that does actual query, i have seen examples like this one: https://github.com/docker-library/healthcheck/blob/master/postgres/docker-healthcheck Your thoughts? |
You can use With various conditions like Adding of the default vars in this PR will also fix the error the user above was having |
Related Issue #6498 |
Agreed
If the user performs |
Thanks for clarifying! I understand the issue now. I'm not sure why the db and user would not exist yet, before the first healthcheck runs. But if this is the case, and tweaking the The backend container could have a migrate-entrypoint.sh, which includes a check on the db first before running the migration code. FMTM has something similar with bundled entrypoints in the backend container than can be selected based on the context |
@spwoodcock can you rebase this? The backend tests should run properly after. |
ed0ff32
to
e2d19c9
Compare
Done π Let's see! |
Quality Gate passedIssues Measures |
What type of PR is this? (check all applicable)
Related Issue
#6487
Describe this PR
version
param from docker-compose.yml files, as it's now obsolete.upgrade
command out of the tm-migration entrypoint. Allow for override viacommand: xxx
in docker-compose.Review Guide
Notes for the reviewer. How to test this change?
Checklist before requesting a review
[optional] What gif best describes this PR or how it makes you feel?