- Home
- Document Databases
- DocumentDB
DocumentDB
What it is
DocumentDB is an MIT-licensed, open-source document database built on PostgreSQL with MongoDB compatibility. It stores native BSON documents while supporting document CRUD and PostgreSQL SQL operations. Indexes include single-field, multi-key, compound, text, and geospatial types, including nested fields. Vector search for embeddings and similarity search uses pgvector. MongoDB-compatible clients and tools include mongosh, PyMongo, the official MongoDB Node.js driver, and a VS Code extension. The extension can create a local database, generate credentials, and save a connection. DocumentDB runs locally in Docker or on a user’s infrastructure or cloud, with SCRAM-SHA-256 authentication and TLS terminating at the gateway, whose default port is 10260. Current hosted packages cover Ubuntu 24.04 and EL9 with PostgreSQL 17 or 18 for amd64 and arm64. Packages are not available for Ubuntu 22.04, Debian 11–13, EL8, or PostgreSQL 16. A Kubernetes operator offering failover, replication, backups, and TLS is marked preview.
For and against
For
- MIT-licensed open-source database
- MongoDB-compatible clients and drivers
- BSON documents with PostgreSQL SQL
- Multiple index types and vector search
- Docker, self-hosted, and cloud deployment
Against
- Hosted packages support limited OS and PostgreSQL versions
- Kubernetes operator is preview software
- TLS terminates at the gateway
- No hosted packages for PostgreSQL 16
The verdict
DocumentDB combines MongoDB-style documents and tooling with PostgreSQL operations, indexing, and pgvector search. Check the supported package matrix and preview status before choosing a deployment path.
Who it suits
It suits developers needing MongoDB-compatible document storage alongside PostgreSQL SQL capabilities. Teams can run it locally, on their own infrastructure, or in cloud environments.
Plans and prices
DocumentDB
MIT licensed open-source database; run locally with Docker or install Linux packages
Read 9 Oct 2026 · documentdb.io
On the record
- AI workloads
- The AI page describes storing BSON documents and embeddings together and filtering vector search by metadata.documentdb.io · read 9 Oct 2026
- Authentication
- The gateway supports SCRAM-SHA-256 authentication.documentdb.io · read 9 Oct 2026
- Client integrations
- The gateway supports MongoDB-compatible drivers and tools including mongosh, PyMongo, the MongoDB Node.js driver, and the VS Code extension.documentdb.io · read 9 Oct 2026
- CRUD and SQL
- It supports document CRUD and PostgreSQL compatibility for advanced SQL operations.documentdb.io · read 9 Oct 2026
- Drivers and tools
- DocumentDB supports MongoDB-compatible clients and tools, including mongosh, PyMongo, the official MongoDB Node.js driver, and the VS Code extension.documentdb.io · read 9 Oct 2026
- Indexes
- Its listed index types include single-field, multi-key, compound, text, and geospatial indexes, including nested fields.documentdb.io · read 9 Oct 2026
- Indexing
- Its indexing features include single-field, multi-key, compound, text, and geospatial indexes, including nested fields.documentdb.io · read 9 Oct 2026
- Kubernetes
- A Kubernetes operator offers lifecycle management and features including failover, replication, backups, and TLS, and is marked as a preview.documentdb.io · read 9 Oct 2026
- Kubernetes operator
- The Kubernetes operator is in preview and lists Kubernetes 1.35+ and cert-manager as requirements.documentdb.io · read 9 Oct 2026
- License
- The project is MIT licensed.documentdb.io · read 9 Oct 2026
- License and portability
- DocumentDB is MIT licensed and described as running locally with Docker or on a user's own infrastructure or cloud.documentdb.io · read 9 Oct 2026
- Linux packages
- The current hosted package matrix supports Ubuntu 24.04 and EL9 with PostgreSQL 17 or 18, for amd64 and arm64.documentdb.io · read 9 Oct 2026
- Linux package support
- The current hosted package matrix lists Ubuntu 24.04 and EL9 with PostgreSQL 17 or 18, and says packages for Ubuntu 22.04, Debian 11/12/13, EL8, and PostgreSQL 16 are no longer published.documentdb.io · read 9 Oct 2026
- Local setup
- DocumentDB can run locally in Docker, with a local endpoint on port 10260.documentdb.io · read 9 Oct 2026
- Platform limitation
- The current hosted packages are not available for Ubuntu 22.04, Debian 11/12/13, EL8, or PostgreSQL 16.documentdb.io · read 9 Oct 2026
- Product
- DocumentDB is an open-source, MongoDB-compatible document database built on PostgreSQL.documentdb.io · read 9 Oct 2026
- Security
- The project lists SCRAM authentication; its gateway documentation says TLS terminates on the gateway port, whose default is 10260.documentdb.io · read 9 Oct 2026
- Storage
- DocumentDB supports native BSON document data and PostgreSQL SQL operations.documentdb.io · read 9 Oct 2026