课程: Learning Full-Stack JavaScript Development: MongoDB, Node, and React
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
MongoDB and Docker
课程: Learning Full-Stack JavaScript Development: MongoDB, Node, and React
MongoDB and Docker
- [Instructor] Let's now configure a MongoDB server and load some test data. You need a MongoDB server. You can directly install it from the official website or you can use Docker. Docker provides ready server images that you can download and run in containers. I'll use Docker and if you want to follow that, you'll need to install it. The easiest way to do that is by installing this Docker Desktop. Using Docker is simple. I provided a Docker composed file here under the copy folder for an example of how to run a MongoDB server image. You can put this file on the top level. It's a simple YAML file that tells Docker that we'd like a MongoDB server image. To run it, the command is Docker Compose up. Docker Compose should be available on your machine once you install Docker desktop. A MongoDB server container is now running through Docker and it exposes this port for us to connect to the database. Let's connect to it.…