This project is managed using Docker Compose, and consists of multiple services including a frontend, backend, MinIO (S3-compatible storage), and MongoDB Atlas (cloud-based database). Below are the details of each service and its assigned ports.
| Service | Local Port (Host Machine) | Internal Port (Docker Container) | Description |
|---|---|---|---|
| Frontend (React + Vite) | 5173 |
5173 |
The web UI, accessible at http://localhost:5173 |
| Backend (Express API) | 3000 |
3000 |
The backend server, accessible at http://localhost:3000 |
| MongoDB (Atlas - Cloud) | Cloud-Based | Cloud-Based | The database is hosted on MongoDB Atlas (No local port needed) |
| MinIO API (S3-Compatible Storage) | 9000 |
9000 |
The API for file storage, accessible at http://localhost:9000 |
| MinIO Console (Web UI) | 9001 |
9001 |
The admin dashboard for MinIO, accessible at http://localhost:9001 |
To check which services are currently running, use the following command:
docker psThis will display all active containers along with their ports and status.
If you need to restart all services, run the following commands:
docker-compose down
docker-compose up --buildThis will stop all running services and rebuild them from scratch.
- The MongoDB database is hosted on MongoDB Atlas, so there is no local port for it.
- MinIO provides S3-compatible storage, which you can access via API (
9000) or the web UI (9001). - The backend communicates with MinIO and MongoDB, ensuring that uploaded files are stored and referenced correctly.
If a service is not working, check its logs using:
docker logs <container_name>For example, to check the backend logs:
docker logs back-container🚀 Enjoy working with this project! 🚀