Docker Project - lizzy9596/sys-265 GitHub Wiki

Docker Project

Parts

  1. Introduction

Introduction

For this project I decided to run mongoDB with docker compose following this documentation: docker compose and MongoDB

Before I started the lab I made sure that docker was running and compose was installed.

Installation

I first created the directory for MongoDB with the command mkdir -pv mongodb/database. I then went into the directory and created the following docker-compose.yml file mongoConfigure.txt. I adjusted with my own configurations :

{B0E7B164-30E7-4853-9B17-76298C785B5F}

Starting the container

I then was able to install using sudo docker-compose up -d.

{C4C4F3A5-CF2A-4E7A-8EF7-36A9C9D1A9BB}

I then verified the container is running by using sudo docker ps -a .

Using the container

To start I needed to open the MongoDB container sudo docker exec -it mongodb bash .