Docker Project - lizzy9596/sys-265 GitHub Wiki
Docker Project
Parts
- 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 :
Starting the container
I then was able to install using sudo docker-compose up -d
.
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
.