MongoDB

Cloud Agnostic
Open Source

Stores notifications in MongoDB with flexible document storage and TTL indexes for automatic cleanup.

Source code: Notiway.Plugins.Portable.Storages.MongoDB

Compatibility

Compatible withAll Buffer, Broker, Auth, and Host plugins
ProductNotiway Notify

Installation

Environment Variables

VariableRequiredDefaultDescription
Infra__Plugins__Storage__NameYesSet to MongoDB
Infra__Plugins__Storage__VersionYesPlugin version (e.g., 0.9.0)
Infra__Plugins__Storage__Config__ConnectionStringYesMongoDB connection string (e.g., mongodb://localhost:27017)
Infra__Plugins__Storage__Config__DatabaseNameNonotiwayName of the MongoDB database
Infra__Plugins__Storage__Config__CollectionNameNonotificationsName of the collection to store notifications in

Infrastructure

  1. Running MongoDB instance — v5.0+ recommended.
  2. The collection and TTL indexes are created automatically by the plugin on startup. No manual setup needed.

Docker Compose

docker-compose.yml
services:
  notiway:
    image: notiway/notify:portable-0.5.0
    ports:
      - "5000:8080"
    environment:
      - Infra__Plugins__Storage__Name=MongoDB
      - Infra__Plugins__Storage__Version=0.9.0
      - Infra__Plugins__Storage__Config__ConnectionString=mongodb://mongo:27017
      - Infra__Plugins__Storage__Config__DatabaseName=notiway
      - Infra__Plugins__Storage__Config__CollectionName=notifications

  mongo:
    image: mongo:7
    ports:
      - "27017:27017"
    volumes:
      - mongodata:/data/db

volumes:
  mongodata: