DevStack mongod container initiation issue

I am new to openedx development and I am facing an issue at setting up devstack.

The error on console is:

Found an invalid index { v: 2, key: { _id: 1 }, name: “id”, ns: “admin.system.version” } on the admin.system.version collection: this version of mongod cannot build new indexes of version number 2

This is a mongodb error associated with version incompatibility. I have tried upgrading the mongoDB version from compose file but that invited a whole different version issues.

One query I have is whether mongo importing in any seed data locally soon after it is up. I have not came across a volume mapping.
Any help will be appreciated.