Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo Atlas Search index in Docker

I already have a Docker Mongo image in my NodeJs service. I implement the acceptance test using the Docker Mongo image. But now, I start to use Atlas Search as well and I want to create Atlas Search index on my Mongo Docker. I did search on the documentation but couldn't find a way. Do you have any idea how can I create an index for my local environment with docker? Otherwise I get this error caused by MongoServerError: Unrecognized pipeline stage name: '$search'

like image 611
sbb Avatar asked Sep 15 '25 13:09

sbb


2 Answers

You can easily do that now with this https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-deploy-docker/.

No CLI needed, you only have to use this docker image mongodb/mongodb-atlas-local

like image 196
Alberto Pérez Avatar answered Sep 18 '25 08:09

Alberto Pérez


Looks like Atlas CLI is the only option at this time. Please see from MongoDB's page, Create a Local Atlas Deployment

Looks like there is also a Docker image for the CLI as well if you choose.

like image 29
Dani Avatar answered Sep 18 '25 10:09

Dani