Skip to content

Instantly share code, notes, and snippets.

@sychonet
Last active February 12, 2023 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sychonet/603c254e684c9ea7350a6e01bedb2501 to your computer and use it in GitHub Desktop.
Save sychonet/603c254e684c9ea7350a6e01bedb2501 to your computer and use it in GitHub Desktop.
MongoDB setup for testing query in TIX-NOTIFICATION-SETTING
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