SIGN IN SIGN UP

feat(mongodb): Add Atlas Local for MongoDb (#873)

Linked issue:
https://github.com/testcontainers/testcontainers-python/issues/865

This adds a Mongo DB Atlas local container.

This works similarly to the Java container:
https://java.testcontainers.org/modules/databases/mongodb/#mongodbatlaslocalcontainer

Like the java one, I added this into the same module as the normal Mongo
container, but we can make it into its own module if this would be
better.

Changes form standard mongo container:

1. Use different environment variables for configuration
2. Wait for the container healthcheck rather than the logs, as it takes
a little longer for the search service to start.

---------

Co-authored-by: Jeff Goddard <jeff.goddard+copilot@rbi.co.uk>
Co-authored-by: Roy Moore <roy@moore.co.il>
Co-authored-by: David Ankin <daveankin@gmail.com>
J
Jeff Goddard committed
73aeb43c18d56993d7c2626fb598a01842a91c35
Parent: 59ec1ce
Committed by GitHub <noreply@github.com> on 4/29/2026, 10:55:36 PM