diff --git a/Dockerfile b/Dockerfile index aa5c1d1..548f286 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,6 @@ FROM nginx:alpine # Copy the built React app to Nginx's html directory COPY --from=builder /app/dist /usr/share/nginx/html -# Copy custom Nginx configuration -COPY nginx.conf /etc/nginx/nginx.conf # Expose port 80 EXPOSE 80 diff --git a/README.md b/README.md index 8855bea..5dc6c02 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,23 @@ src/ Create a `.env` file in the root directory with necessary environment variables. +## Deployment with Docker + +This project includes Docker configuration files for easy deployment: + +1. Build and run the application using Docker Compose: + ```bash + docker-compose up --build + ``` + +2. The frontend will be available at http://localhost:80 +3. The backend API will be available at http://localhost:3001 + +The Docker setup includes: +- A frontend service running Nginx to serve the React application +- A backend service running Node.js Express server +- Proper networking between services + ## License This project is proprietary and confidential. \ No newline at end of file