documentdb-local-deployment
Skill7 starsChanged 4 months agoMITView on GitHub
Best practices for running Azure DocumentDB locally for development — choosing the Gateway Docker image (MongoDB on 10260, PostgreSQL on 9712), docker-compose setup, connection config (port 10260, TLS, SCRAM-SHA-256), env-driven configuration, sample-data management (`SKIP_INIT_DATA` / `INIT_DATA_PATH`), port bindings, and dev/prod parity via versioned seed and schema scripts. Use when setting up a new local dev environment, writing sample apps, building integration tests, or diagnosing local connection problems.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- documentdb-azure-deploymentSkill
- documentdb-connectionSkill
- documentdb-data-modelingSkill
- documentdb-driverSkill
- documentdb-full-text-searchSkill
- documentdb-high-availabilitySkill
- documentdb-indexingSkill
- documentdb-mcp-setupSkill
- documentdb-monitoringSkill
- documentdb-natural-language-queryingSkill
- documentdb-query-optimizationSkill
- documentdb-query-optimizerSkill
- documentdb-securitySkill
- documentdb-shardingSkill
- documentdb-storageSkill
- documentdb-vector-searchSkill
The file
Files
Local Deployment & Developer Workflow — Azure DocumentDB
Image choices:
- Gateway (
ghcr.io/documentdb/documentdb/documentdb-local:latest) — MongoDB wire protocol on port 10260. Use this for app development. - PostgreSQL — the same Gateway image also serves raw PostgreSQL on port 9712. Use it only for direct SQL inspection. (The MCR psql-only
documentdb-ossimage has no 1.0 build yet.)
Rules
- local-choose-deployment-method — Pick the simplest local option (Gateway, Compose, or source) that matches the interface your app actually uses.
- local-docker-compose-setup — Reproducible local stack via
docker-compose.yml: pinned images,host.docker.internal,restart: unless-stopped. - local-connection-config — Connect on port 10260 with
--tls,--tlsAllowInvalidCertificates, and SCRAM-SHA-256 for the self-signed local cert. - local-env-driven-config — Drive connection URI and TLS relaxation from env vars; never default
tlsAllowInvalidCertificates=truein code. - local-sample-data-management — Use
SKIP_INIT_DATA+INIT_DATA_PATHwith vetted seed scripts; don't ship the built-insampledbbeyond local demos. - local-ports-and-bindings — Bind published ports to
127.0.0.1and expose only what you use (10260 for Mongo, 9712 for psql). - local-prod-parity — Same connection abstraction and versioned index/seed scripts across local and Azure DocumentDB; integration-test against the real container.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

