Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongo in docker ? #525

Open
amoinier opened this issue Sep 3, 2020 · 2 comments
Open

Mongo in docker ? #525

amoinier opened this issue Sep 3, 2020 · 2 comments

Comments

@amoinier
Copy link

amoinier commented Sep 3, 2020

Hi,
Why don't you start a docker image instead of use mongo in you dedicated server ?

@benoitdemaegdt
Copy link
Owner

Hi @amoinier

Good question. In production I use mongodb atlas, a database as a service provider.

Keeping mongo outside of docker compose allows me to keep my local env as close as possible to the production env.

@Its-Alex
Copy link

Its-Alex commented Sep 4, 2020

Hi @benoitdemaegdt,

in my opinion, having your database in a docker allow people on all platforms to clone and launch your project without needs to install MongoDB locally. Moreover, this allows them to have:

  • The same MongoDB version as you
  • Relaunch/recreate the database anytime they want
  • No need to setup connection with custom database
  • No conflict with OS since it's running in container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants