-
Notifications
You must be signed in to change notification settings - Fork 41
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
Dockerize the Application #85
Conversation
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.
@mayura-andrew Can you update the read me with how to use docker to run the project?
For the PR description can you use the following format @mayura-andrew https://github.com/sef-global/scholarx-backend/blob/main/.github/pull_request_template.md |
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.
added new line
@mayura-andrew The purpose should be like the issue number. So the issue will be closed automatically when the PR is merged. The purpose of this PR is to fix #84 |
Purpose
The purpose of this PR is to fix #84
Goals
The main goal is to create a Dockerfile and docker-compose.yml file that will allow the backend to be built and run in a Docker container. This will ensure that all developers are working in the same environment, reducing the "it works on my machine" problem.
Approach
We will create a Dockerfile that describes the environment needed to run the backend, including the base image, necessary dependencies, and how to run the application. We will also create a docker-compose.yml file to manage the services our application needs, such as a database.
Screenshots
Screenshots are not applicable for this PR as it doesn't involve any UI changes.
Checklist
##Related PRs
No related PRs.
Test environment
This feature was tested on Docker Desktop 4.26.1 and, build on Fedora Linux 39 (KDE Plasma) x86_64
Learning
During the implementation of this feature, I learned about Docker and its benefits in creating consistent development environments. I also learned how to use Docker Compose to manage multi-container applications.