benoitdemaegdt / TGVmax

🚂 Get a notification when your TGVmax seat is available

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mongo in docker ?

amoinier opened this issue · comments

commented

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

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.

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