diff --git a/mern/backend/Dockerfile b/mern/backend/Dockerfile deleted file mode 100644 index c6d703b..0000000 --- a/mern/backend/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM node:18.9.1 - -WORKDIR /app - -COPY package.json . - -RUN npm install - -COPY . . - -EXPOSE 5050 - -CMD ["npm", "start"] - diff --git a/mern/backend/db/connection.js b/mern/backend/db/connection.js index 1ac15dc..519c4d1 100644 --- a/mern/backend/db/connection.js +++ b/mern/backend/db/connection.js @@ -1,6 +1,6 @@ import { MongoClient, ServerApiVersion } from "mongodb"; -const URI = "mongodb://mongodb:27017"; +const URI = "mongodb+srv://akhileshyalapalli266:Akhilesh266@akhileshdb.naco49j.mongodb.net/?retryWrites=true&w=majority&appName=AkhileshDB"; const client = new MongoClient(URI, { serverApi: { version: ServerApiVersion.v1, diff --git a/mern/frontend/Dockerfile b/mern/frontend/Dockerfile deleted file mode 100644 index 0b34905..0000000 --- a/mern/frontend/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -# Use the official image as a parent image -# Description: Dockerfile for the client side of the MERN stack application - -# Use the official image as a parent image -FROM node:18.9.1 - -# Set the working directory -WORKDIR /app - -# Copy the file from your host to your current location -COPY package.json . - -# Run the command inside your image filesystem -RUN npm install - -# Inform Docker that the container is listening on the specified port at runtime -EXPOSE 5173 - -# Copy the rest of your app's source code from your host to your image filesystem -COPY . . - -# Run the specified command within the container -CMD ["npm", "run", "dev"]