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 with | All Buffer, Broker, Auth, and Host plugins |
| Product | Notiway Notify |
Installation
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
Infra__Plugins__Storage__Name | Yes | — | Set to MongoDB |
Infra__Plugins__Storage__Version | Yes | — | Plugin version (e.g., 0.9.0) |
Infra__Plugins__Storage__Config__ConnectionString | Yes | — | MongoDB connection string (e.g., mongodb://localhost:27017) |
Infra__Plugins__Storage__Config__DatabaseName | No | notiway | Name of the MongoDB database |
Infra__Plugins__Storage__Config__CollectionName | No | notifications | Name of the collection to store notifications in |
Infrastructure
- Running MongoDB instance — v5.0+ recommended.
- 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.6.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: