Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.05 KB

File metadata and controls

26 lines (19 loc) · 1.05 KB

Clone the repo using this URL ---> https://github.com/Emmanuelvaram123/python-library-application.git

APPLICATION CODE AND FILES ARE PRESENT IN -----> MASTER (Branch)

Commands to build Docker images :

docker build -t dbimage database/
docker build -t authimage auth/
docker build -t bookimage book/
docker build -t borrowimage borrow/
docker build -t appimage .

Command to Create one New Network:

docker network create mynet

Commands to Create Docker containers for all services:

docker run -d --name db -p 3306:3306 --network mynet dbimage
docker run -d --name auth_service --network mynet -p 5001:5001 authimage
docker run -d --name book_service -p 5002:5002 --network mynet bookimage
docker run -d --name borrow_service -p 5003:5003 --network mynet borrowimage
docker run -d --name frontend -p 5000:5000 --network mynet appimage