Skip to content

Instantly share code, notes, and snippets.

View guillecro's full-sized avatar
🦝

Guillermo Croppi guillecro

🦝
View GitHub Profile
@guillecro
guillecro / install-mongo.md
Created November 16, 2021 15:19
If you need to install multiple mongo (or any, like Maria) databases in the same OS

Sometimes you might need multiple instances of mongo or mysql installed. Instead of installing them locally, just user the dockerimage

Having the databases on docker containers gives me flexibility in swaping databases pretty easily.

Before starting, to persist the databases, we need to store the volumes somewhere. I like to make a "databases" folder in my home folder, but you can put them wherever you want. Just make sure to persist them

Example: Installing mongo3.6 & mongo3.2