AOSSIE-Org / AOSSIE-Org/DebateAI

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

Abierto
#183 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
84
Forks
198
Merge medio
2 d 19 h
PR fusionados (30 d)
30

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.