add Docker support and production-ready deployment setup#5
Open
maheshshinde9100 wants to merge 1 commit into
Open
add Docker support and production-ready deployment setup#5maheshshinde9100 wants to merge 1 commit into
maheshshinde9100 wants to merge 1 commit into
Conversation
- add Dockerfile for FastAPI backend with Python 3.10 slim - add multi-stage Dockerfile for React/Vite frontend with Nginx - add docker-compose configuration for full-stack orchestration - add .dockerignore files to optimize Docker build context - update frontend API service to use VITE_API_URL env variable - update README with Docker setup instructions and corrected project structure
This was referenced May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces complete Docker support for the NyayaSetu-AI application to simplify local development, improve onboarding, and enable production-ready deployment for both the FastAPI backend and React frontend.
The update includes Dockerfiles for both services, Docker Compose orchestration, optimized Docker build configurations, environment-based frontend API configuration, and updated project documentation.
Closes #2
Closes #4
Proposed Changes
Backend
Dockerfile.backendusingpython:3.10-slimFrontend
frontend/DockerfileDocker Orchestration
docker-compose.ymlfor managing frontend and backend services together80003000.env, FAISS files, and SQLite databaseBuild Optimization
.dockerignorefiles in both root and frontend directoriesnode_modules__pycache__.gitConfiguration Improvements
frontend/src/services/api.jsDocumentation
README.mdwith:Benefits
Consistent Development Environment
Ensures all contributors use the same setup across systems.
Easy Onboarding
Developers can start the full stack using:
Production-Ready Deployment
Provides containerized infrastructure suitable for deployment platforms and cloud hosting.
Optimized Docker Builds
Reduced image size and faster build times using
.dockerignoreand multi-stage builds.How to Test
.envfile:Files Added / Updated
.dockerignoreDockerfile.backenddocker-compose.ymlfrontend/.dockerignorefrontend/Dockerfilefrontend/src/services/api.jsREADME.md