This repository contains all the demo projects I made using docker to fully understand and master this eveolving technology.
1) Dockerizing networks-starting-setup using networks:
Commands:
1) docker network create |network name|
Initially creating the container for the server
2) docker build -t |image name| .
3) docker run --name --network --rm -d -p 3000:3000
( You can add bind mounts , anonymous or named volumes to it)
Container for the database - (mongodb)
- docker run --rm -d --network | network name (common for shared containers) | --name mongo
( It's preferred to containerize the database first , you can even expose the ports if u want to do )