{"id":20329328,"url":"https://github.com/ddev/ddev-mongo","last_synced_at":"2026-02-11T12:13:21.589Z","repository":{"id":37610334,"uuid":"475054747","full_name":"ddev/ddev-mongo","owner":"ddev","description":"MongoDB NoSQL database support for DDEV","archived":false,"fork":false,"pushed_at":"2026-02-03T11:43:55.000Z","size":168,"stargazers_count":7,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-04T02:09:11.980Z","etag":null,"topics":["ddev-get"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ddev"],"custom":["https://www.paypal.com/donate/?hosted_button_id=MCNCSZHC7LHSQ","https://ddev.com/support-ddev/"]}},"created_at":"2022-03-28T15:05:45.000Z","updated_at":"2026-02-03T11:43:30.000Z","dependencies_parsed_at":"2026-02-03T14:03:40.494Z","dependency_job_id":null,"html_url":"https://github.com/ddev/ddev-mongo","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":"ddev/ddev-addon-template","purl":"pkg:github/ddev/ddev-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddev","download_url":"https://codeload.github.com/ddev/ddev-mongo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-mongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddev-get"],"created_at":"2024-11-14T20:10:12.123Z","updated_at":"2026-02-11T12:13:21.558Z","avatar_url":"https://github.com/ddev.png","language":"Shell","funding_links":["https://github.com/sponsors/ddev","https://www.paypal.com/donate/?hosted_button_id=MCNCSZHC7LHSQ","https://ddev.com/support-ddev/"],"categories":[],"sub_categories":[],"readme":"[![add-on registry](https://img.shields.io/badge/DDEV-Add--on_Registry-blue)](https://addons.ddev.com)\n[![tests](https://github.com/ddev/ddev-mongo/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ddev/ddev-mongo/actions/workflows/tests.yml?query=branch%3Amain)\n[![last commit](https://img.shields.io/github/last-commit/ddev/ddev-mongo)](https://github.com/ddev/ddev-mongo/commits)\n[![release](https://img.shields.io/github/v/release/ddev/ddev-mongo)](https://github.com/ddev/ddev-mongo/releases/latest)\n\n# DDEV Mongo\n\n## Overview\n\n[MongoDB](https://www.mongodb.com/) is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB uses JSON-like documents with optional schemas.\n\nThis add-on integrates MongoDB and Mongo Express into your [DDEV](https://ddev.com/) project.\n\nIt's based on [MongoDB from Docker Hub](https://hub.docker.com/_/mongo?tab=description), [DDEV custom compose files](https://docs.ddev.com/en/stable/users/extend/custom-compose-files/) and [API Platform tutorial](https://api-platform.com/docs/core/mongodb/#enabling-mongodb-support).\n\n## Installation\n\n```bash\nddev add-on get ddev/ddev-mongo\nddev restart\n```\n\nAfter installation, make sure to commit the `.ddev` directory to version control.\n\n## Connection\n\nBy default, the database with the name `db` is created. You can connect to it using this connection string:\n\n```text\nmongodb://db:db@mongo:27017/db?authSource=admin\n```\n\nYou can change the default database name, username, and password using env variables:\n\n```bash\nddev dotenv set .ddev/.env.mongo \\\n    --mongo-initdb-root-username=db \\\n    --mongo-initdb-root-password=db \\\n    --mongo-initdb-database=db\n```\n\nIf you want to disable authentication:\n\n```bash\nddev dotenv set .ddev/.env.mongo \\\n    --mongo-initdb-root-username=\"\" \\\n    --mongo-initdb-root-password=\"\" \\\n    --me-config-mongodb-url=mongodb://mongo:27017\n```\n\n## Configuration\n\n1. Your project will likely require the [Doctrine MongoDB ODM bundle](https://github.com/doctrine/DoctrineMongoDBBundle)\n\n    ```bash\n    ddev composer require doctrine/mongodb-odm-bundle doctrine/mongodb-odm\n    ```\n\n2. In your application `.env` or other client, set the connection string:\n\n    ```dotenv\n    MONGODB_URL=mongodb://db:db@mongo:27017\n    ```\n\nMongo Express can now be started on demand using the `ddev mongo-express` command.\n\n## Usage\n\n| Command | Description |\n| ------- | ----------- |\n| `ddev mongosh` | Run MongoDB Shell, see the [documentation](https://www.mongodb.com/docs/mongodb-shell/) |\n| `ddev mongo-express` | Start web-based MongoDB admin interface |\n| `ddev describe` | View service status and used ports for MongoDB |\n| `ddev logs -s mongo` | Check MongoDB logs |\n| `ddev logs -s mongo-express` | Check Mongo Express logs (if it's started) |\n\n## Caveats:\n\n- You can't define custom MongoDB configuration with this current setup.\n- You can't use `ddev import-db` to import to mongo.\n\n## Advanced Customization\n\nTo change the Docker image:\n\n```bash\nddev dotenv set .ddev/.env.mongo --mongo-docker-image=mongo:latest\nddev add-on get ddev/ddev-mongo\nddev restart\n```\n\nMake sure to commit the `.ddev/.env.mongo` file to version control.\n\nAll customization options (use with caution):\n\n| Variable                     | Flag                           | Default                       |\n|------------------------------|--------------------------------|-------------------------------|\n| `MONGO_DOCKER_IMAGE`         | `--mongo-docker-image`         | `mongo:latest`                |\n| `MONGO_EXPRESS_DOCKER_IMAGE` | `--mongo-express-docker-image` | `mongo-express:1.0`           |\n| `MONGO_INITDB_ROOT_USERNAME` | `--mongo-initdb-root-username` | `db`                          |\n| `MONGO_INITDB_ROOT_PASSWORD` | `--mongo-initdb-root-password` | `db`                          |\n| `MONGO_INITDB_DATABASE`      | `--mongo-initdb-database`      | `db`                          |\n| `ME_CONFIG_MONGODB_URL`      | `--me-config-mongodb-url`      | `mongodb://db:db@mongo:27017` |\n\n## Credits\n\n**Originally contributed by [@wtfred](https://github.com/wtfred)**\n\n**Maintained by [@julienloizelet](https://github.com/julienloizelet)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fddev-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddev%2Fddev-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fddev-mongo/lists"}