GithubHelp home page GithubHelp logo

ddev-mongo's Introduction

tests project is maintained

What is ddev-mongo?

This repository provides Mongo and Mongo Express add-on to DDEV.

It's based on MongoDb from Docker Hub, DDEV custom compose files and API Platform tutorial.

Configuration

  1. Your project will likely require the Doctrine MongoDB ODM bundle ddev composer require doctrine/mongodb-odm-bundle:^4.0.0@beta doctrine/mongodb-odm:^2.0.0@beta

  2. In your application .env or other client, set the connection string:

    MONGODB_URL=mongodb://db:db@mongo:27017
    MONGODB_DB=api
    

Mongo Express will now be accessible from http://<project>.ddev.site:9091

Features

ddev mongosh command

This command will run the mongosh (mongoDB Shell) command in the mongo container. Please read the documentation for more information.

Caveats:

  • The php extension (phpX.X-mongodb) is set up in .ddev/config.mongo.yaml using webimage_extra_packages. If you have an earlier webimage_extra_packages in your config.yaml, this will override it. You may want to edit your config.yaml to do what you want and remove the config.mongo.yaml.
  • You can't define custom MongoDB configuration with this current setup.
  • You can't use ddev import-db to import to mongo.

Based on the original ddev-contrib recipe

Originally contributed by @wtfred

Maintained by @julienloizelet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.