Welcome to the Uber project repository. This project uses Docker images for both the backend server and the frontend client to simulate a ride-sharing service.
This project is a simple Uber-like service simulation comprising:
- Backend Server: Pre-built Docker image running on Node.js.
- Frontend Client: Pre-built Docker image built with a modern frontend framework.
- MongoDB: Serves as the primary database.
- Clone the repository:
git clone https://github.com/harshutech/uber
- Navigate to the project directory:
cd uber-project
- Ensure Docker Compose is installed.
- Run the following command in the project root:
This command starts the backend, frontend, and MongoDB services as defined in the
docker-compose up
docker-compose.yml
file.
- The backend uses environment variables loaded from
backend/.env
. Be sure to customize this file if needed. - The Docker services communicate on a dedicated network (
app-network
).
- If a service fails to start, review the container logs:
docker-compose logs <service-name>
- Verify that ports 3000, 5173, and 27017 are not in use.
- For persistent MongoDB data, a named volume
mongo-data
is used.
- Restart policies are added to all services to ensure they automatically recover from failures.
- For further details, refer to the inline comments in the configuration files.
If you prefer to pull the Docker image directly, run:
docker pull harshpatil20/uber_prototype
// ...existing documentation or further instructions...