Hi @Marco_Maldonado and welcome in the MongoDB Community :muscle: !

Yes I am. It’s written right here. :point_up_2:

I think I’ll write a blog post about this because apparently nobody wants to hear that single node RS for a localhost dev environment is just fine. :smiley:

This is what I use daily to run a localhost dev environment:

alias mdb='docker run --rm -d -p 27017:27017 -h $(hostname) --name mongo mongo:6.0.5 --replSet=RS && sleep 5 && docker exec mongo mongosh --quiet --eval "rs.initiate();"'
alias m='docker exec -it mongo mongosh --quiet'

It works perfectly fine. I can use ACID transactions, change streams, …

If I want to keep the data, I can use a volume but I don’t need to.

Cheers,
Maxime.

2 Likes