AOSSIE-Org / AOSSIE-Org/DebateAI
[QUES]: Do we need a docker setup for production.
- 主要语言
- TypeScript
- 星标
- 84
- 派生
- 198
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 30
描述
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.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。