Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 834 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 834 Bytes

DockerDemos

This repository contains all the demo projects I made using docker to fully understand and master this eveolving technology.

Projects:

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)

  1. 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 )