-
Notifications
You must be signed in to change notification settings - Fork 12
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
Migrate database to localhost #92
Conversation
Add new mongodb app in docker-compose This app has a volume in mongodb/ to store the data Setup two docker networks to separate backend and proxy traffic Update the backend to connect to localhost instead of remote database
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.
this looks good to me even though i've no idea how it works 😮
i'll trust you when you say you have tested it => do you think we could test that part of the website during some deployment pipeline?
also, we'll have to wait for prettier
to work, but that's a detail 😌
What do you mean by testing it during some deployment pipeline? |
well you're saying me you've updated the database, performed local manual tests and that it must 'be done "by hand"' to deploy the website on the server. i'm wondering if there is some kind of GitHub pipeline we could write to test
|
Ok yes I see! |
could you file an issue for this? 😋
ok gotcha, no need to spend too much time on that particular migration then 😌 |
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.
lgtm (CI for the win 😤)
Actually no, because we have a bigger plan for the CI with @ctmbl |
This merge is needed to bring the recent changes of iScsc#92 to the 'backend/python` branch
This merge is needed to bring recent DB local containerization iScsc#92 to this branch
This PR removes the hardcoded values of the remote atlas database.
It introduces a new local database deployment in the docker-compose workflow.
The database is secured thanks to docker networking.
I tested the whole migration ✔️