Skip to content

Is there a way to run a MongoDB replica set by 'GenericContainer'? #1387

@JieHan17

Description

@JieHan17

It's easy to convert a standalone mongod to a replica set for testing and development:
https://docs.mongodb.com/manual/tutorial/convert-standalone-to-replica-set/

As for CI , I want to use TestContainers to get a MongoDB replica set, is there a better way to make this ? I have tried to use docker compose module, but it's fairly complex.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions