Skip to content
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

Fix: #42 Add Dockerfile and docker-compose for containerization #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MohakGupta2004
Copy link

@MohakGupta2004 MohakGupta2004 commented Dec 8, 2024

This pull request introduces Docker support to the project, enabling easier setup and deployment of the application in a containerized environment. The changes include:

Dockerfile: A Dockerfile has been created to define the containerized environment for the Node.js application, including dependencies, environment variables, and build configurations.
docker-compose.yml: A docker-compose.yml file has been added to simplify the process of running multiple services (such as the Node.js app and MongoDB) in development.
Environment Variables: Default environment variables have been set up for local development, such as PORT, MONGO_URI, and JWT_SECRET. These can be easily overridden in .env files or the Docker Compose configuration.

Summary of Changes:

Added Dockerfile for Node.js application containerization.
Added docker-compose.yml for local development environment (with MongoDB service).
Updated .env example with relevant environment variables.
Exposed application port and MongoDB service through Docker Compose.

@MohakGupta2004 MohakGupta2004 changed the title Add Dockerfile and docker-compose for containerization Fix: #42 Add Dockerfile and docker-compose for containerization Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant