Docker compose

Docker uses Dockerfiles to specify what an image should look like. It uses something called "compose" files to allow you to specify multiple containers that can talk to each other.

  • Add a section to the "docker-compose.yml" file which specifies a Mongo DB image. Name it "mongo"

  • Link that image with the "start" image

  • Run the image

  • Notice that both a "start" image and a "mongo" image are created

Last updated