Last active
February 12, 2023 19:08
-
-
Save sychonet/603c254e684c9ea7350a6e01bedb2501 to your computer and use it in GitHub Desktop.
MongoDB setup for testing query in TIX-NOTIFICATION-SETTING
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run following commands in sequence: | |
docker network create notification-setting-mongo-network | |
docker run -d --network notification-setting-mongo-network --name notification-setting-mongo \ | |
-e MONGO_INITDB_ROOT_USERNAME=admin \ | |
-e MONGO_INITDB_ROOT_PASSWORD=abc1234 \ | |
mongo:latest | |
docker run -it --rm --network notification-setting-mongo-network mongo \ | |
mongosh --host notification-setting-mongo \ | |
-u admin \ | |
-p abc1234 \ | |
--authenticationDatabase admin \ | |
notification-setting-db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment