-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Containerize backend app and MySQL database. #230
Conversation
I followed the commands added in the server/README.md but I'm having some issues getting it running. I'm getting the following output from myclassroom_backend, could I be doing something wrong here?
|
I don't think it's related to anything you did; Might just be a machine difference. Just pushed an update to use legacy authentication and we'll see if that fixes it |
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.
Looks great to me, tested and fully working!
Pull Request Template
Screenshots
Description
Firstly, I created a container for the NodeJS backend in the Dockerfile. Secondly, utilized docker-compose to deploy the backend container and MySQL container. Important to note, that the dev and test databases are created using
db/init.sql
. Seeding and migration are done only on the first run usingentrypoint.sh
which createsCONTAINER_FIRST_STARTUP
inside the container to track whether initialization needs to occur.Fixes # (issue)
Additional Information
Checklist:
Before you submit your Pull Request, please make sure you have completed the following tasks: