AOSSIE-Org / AOSSIE-Org/DebateAI

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

Open
#183 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
84
Forks
198
Avg merge
2d 19h
Merged PRs (30d)
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.