Cloud + Self-Hosted Databases
MongoDB Atlas
Managed document NoSQL database with a 512 MB shared M0 free cluster and SSPL self-hosting.
Cloud Free Tier Audit
Verified 2026-11-27- Forever Free
- Yes
- Credit Card
- Not Required
- Commercial Use
- Allowed
- Auto-Sleep
- Yes (Pauses)
Sleep / Retention Rule: Free M0 sandbox clusters automatically pause after prolonged inactivity.
| Quota Metric | Allowance | Notes |
|---|---|---|
| Free M0 Storage | 512 MB | Shared RAM & vCPU (1 M0 cluster per project) |
| Throughput Cap | 100 ops/sec | Flex paid tier starts at $8/mo for 5 GB |
Paid tier starts at: $8/mo
Self-Hosted Blueprint
mongodb/mongo ↗- Min RAM / CPU
- 1 GB · 1 vCPU
- License
- SSPL-1.0
- GitHub Stars
- 29k
- Maintenance
- Medium
One-click templates on: coolify dokploy railway
Quickstart / Docker Compose
docker-compose.yml
services:
mongo:
image: mongo:8.0
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
volumes:
- mongo_data:/data/db
volumes:
mongo_data:Gotchas & Hidden Limits
- M0 free clusters omit automated point-in-time cloud backups and throttle bursty queries to ~100 ops/sec.
- Self-hosted MongoDB Community Server uses SSPL-1.0 (not OSI-approved open source) — fine internally, restricted if offering MongoDB-as-a-service.
Best For: JSON document schemas, Express/Mongoose backends, and prototypes needing zero-CC NoSQL cloud.
Crossover Point: Move to self-hosted Docker Mongo (or Postgres JSONB) once >512 MB data pushes you toward Atlas Flex/Dedicated tiers.
Related Comparisons & Alternatives
Alternative To
Spot an outdated limit or pricing change?