You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mongodb): add replica set support via opts (#2469)
* feat(mongodb): add WithReplicaSet option
The `WithReplicaSet` option configures the MongoDB container to run a
single-node replica set named "rs". The container will wait until the
replica set is ready.
* docs: document the new option
* fix: proper indent
---------
Co-authored-by: Manuel de la Peña <[email protected]>
Copy file name to clipboardExpand all lines: docs/modules/mongodb.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,12 @@ It is used in conjunction with `WithUsername` to set a username and its password
58
58
59
59
E.g. `testcontainers.WithPassword("mymongopwd")`.
60
60
61
+
#### WithReplicaSet
62
+
63
+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
64
+
65
+
The `WithReplicaSet` functional option configures the container to run a single-node MongoDB replica set named `rs`. The MongoDB container will wait until the replica set is ready.
66
+
61
67
{% include "../features/common_functional_options.md" %}
0 commit comments