AOSSIE-Org / AOSSIE-Org/DebateAI

[QUES]: Do we need a docker setup for production.

Ouverte
#183 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
84
Forks
198
Merge moyen
2 j 19 h
PR mergées (30 j)
30

Description

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

Image

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.