Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fallback from MongoDB to in-memory storage configurable #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patrickeasters
Copy link

We run Mailhog instances in preprod environments where we run a single replica along with a single Mongo container in Kubernetes/Openshift. When spinning up a new instance of Mailhog, the database is not always ready when Mailhog starts.

This PR allows Mailhog to crash if it's unable to connect to Mongo instead of falling back to in-memory storage. This is desirable for us since Kubernetes will back-off/retry until the database is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant