Recommended flow
Choose one install path first. After DocumentDB is running, verify the connection with mongosh before moving to a driver quick start.
Choose an install path
Use Docker for the fastest local setup, or Linux packages for a persistent host installation.
Run locally with Docker
Best for evaluation, local development, and quick testing.
Install from Linux packages
Use the repository-backed package flow when you want a persistent server install. Generate the exact apt or rpm command with the Package Finder.
Recommended: verify with mongosh
This is the fastest shared validation path after either install option because it confirms authentication, TLS, and a working endpoint before you add editor or driver setup. If you already know your target workflow, you can skip this and continue directly with VS Code or a driver quick start.
Or go directly to Visual Studio Code Quick Start, Node.js Quick Start or Python Quick Start.
DocumentDB is an open-source document database platform built on PostgreSQL. It offers developers a fully permissive, open-source platform for document data stores.
DocumentDB provides a NoSQL datastore implemented using PostgreSQL, giving developers complete visibility into the architecture and implementation of the engine. It's designed to offer:
pg_documentdb extension and pg_documentdb_gw gatewaypg_documentdb_core PostgreSQL extensionpg_vector PostgreSQL extensionDocumentDB consists of three primary components:
Together, these components let you use DocumentDB through MongoDB-compatible tools and drivers while still benefiting from PostgreSQL internals.
If you're new to DocumentDB, use this order:
If you prefer an editor-first workflow, start with the Visual Studio Code Quick Start.
Before moving on to application code, confirm that DocumentDB is reachable and you can run a simple query.
docker ps --filter "name=documentdb"
mongosh localhost:10260 \
-u <YOUR_USERNAME> \
-p <YOUR_PASSWORD> \
--authenticationMechanism SCRAM-SHA-256 \
--tls \
--tlsAllowInvalidCertificatesThen run:
db.runCommand({ ping: 1 })For a fuller walkthrough, use the Mongo Shell Quick Start. Driver-based examples are available in the Node.js Quick Start and Python Quick Start.
If setup does not work on the first try:
10260 is published with docker ps.docker logs documentdb.tlsAllowInvalidCertificates=true, follow the certificate steps in DocumentDB Local.--log-level debug; the available runtime options are documented in DocumentDB Local.Once you can connect successfully, continue with these guides:
After you finish the initial setup: