added some stuff!

This commit is contained in:
Donavon McDowell 2024-12-17 17:11:20 -07:00
parent 8af208a8f5
commit 629bd7e4f2
4 changed files with 37 additions and 7 deletions

View File

@ -1,7 +1,5 @@
MONGODB_URI='mongodb://localhost:27017' MONGODB_URI='mongodb://localhost:27017'
MONGODB_NAME='docucenter' MONGODB_NAME='docucenter'
NODE_ENV='development' #If set to production it will require https to function NODE_ENV='development' #If set to production it will require https to function
JWT_SECRET='IjkAORBx^cLYpSb6Btz@te&vAJ3Pt*$z' JWT_SECRET='IjkAORBx^cLYpSb6Btz@te&vAJ3Pt*$z'

22
backend/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
# Use the official Node.js 14 image as the base image
FROM node:21.4-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install project dependencies
RUN npm install
# Copy the project files to the working directory
COPY . ./
# Expose port 3000 for the Node.js application
EXPOSE 3000
WORKDIR /app
# Start the Node.js application
CMD [ "node", "server.js" ]

15
frontend/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:latest
WORKDIR /app
# Copy .npmrc file to the container
COPY .npmrc ./
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "node", "build" ]

View File

@ -1,5 +0,0 @@
TIPTAP_PRO_TOKEN='uCNZ0C3gFH2+0yWa5uSbw9oM+lcXMDwGkPEFudU4ONOKC2m/TH5weVx4lU2EEDpD'
AUTH_SECRET="txvHsSGbEuQ6j3I3YZEyXkVJnPTP/s5vdK4+OJ8sxQo=" # Added by `npx auth`. Read more: https://cli.authjs.dev
PUBLIC_BASE_URL='http://localhost:3000/api' #This is the address of the backend