AOSSIE-Org / AOSSIE-Org/DebateAI
[QUES]: Do we need a docker setup for production.
- Ngôn ngữ chính
- TypeScript
- Star
- 84
- Fork
- 198
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 30
Mô tả
The current docker setup is for a development environment. I noticed some things, that the `docker-compose` is using a local database, like it is using `mongo-shell` for the database, most of us devs who are contributing, i think they are using the `Mongo-Atlas`, so removing the `mongo:latest` from the `docker-compose` would surely be helpful, as it would also decrease the disk size that the project was using by around `1.2 GB`. This can be implemented as -
1. We can remove the mongodb service from the `docker-compose` and use it externally outside the docker container.
2. We can configure the docker to use an external service by configuring its network services.
- Also the size of images is too big
The whole project is using around `6.5GB` disk space, we can reduce this using `docker multi stage build`, that would be helpful in production more. In development, it would have a minor effect, but for contributors setting up the project and can't afford that much disk space, using the multi stage build would really be helpful.
We don't have to remove the current docker setup, we can just make files like `Dockerfile` in frontend and backend and `docker-compose.prod.yml` to help them. I can assure that this docker setup would nearly take around a `1 - 2GB` if we also moved from using `mongo-shell` to `MongoDB Atlas`.
This surely will help users will low end devices to setup and contribute to the project.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.