NotifyBC
Home
Docs
Help
GitHub
Home
Docs
Help
GitHub
  • Getting Started

    • Welcome
    • Overview
    • Quick Start
    • Installation
    • Web Console
    • What's New
  • Configuration

    • Configuration Overview
    • Database
    • Admin IP List
    • Reverse Proxy IP Lists
    • HTTP Host
    • Internal HTTP Host
    • Email
    • SMS
    • Subscription
    • Notification
    • Node Roles
    • Cron Jobs
    • RSA Keys
    • Worker Process Count
    • Middleware
    • OIDC
    • TLS Certificates
    • Queue
    • Logging
  • API

    • API Overview
    • Subscription
    • Notification
    • Configuration
    • Administrator
    • Bounce
  • Miscellaneous

    • Health Check
    • Disaster Recovery
    • Memory Dump
    • Benchmarks
    • Bulk Import
    • Developer Notes
    • Upgrade Guide
  • Meta

    • Code of Conduct
    • Security Reporting
    • Acknowledgments

Database

By default NotifyBC uses mongodb-memory-server backed up by folder server/database/ for local and docker deployment and a separate MongoDB for Kubernetes deployment. To use a separate MongoDB for non-Kubernetes deployment, add file src/datasources/db.datasource.(local|<env>).(json|js|ts) with MongoDB connection information such as following:

module.exports = {
  uri: 'mongodb://127.0.0.1:27017/notifyBC?replicaSet=rs0',
  user: process.env.MONGODB_USER,
  pass: process.env.MONGODB_PASSWORD,
};

See Mongoose connection options for more configurable properties.

Prev
Configuration Overview
Next
Admin IP List