daniellima0 / corretores-online

3 stars 0 forks source link

039: create and initiate Dockerfile implementation #44

Closed lucavillela closed 4 months ago

lucavillela commented 4 months ago

Spoke to Edson and what was developed in this branch is what he meant by "Dockerize the database". To use what was developed you'll need to: 1 - install docker 2 - checkout this branch 3 - cd database 4 - sudo docker build -t corretoresdb . 5 - sudo docker run -d --name corretoresdb-container -p 5432:5432 corretoresdb

Quick explanation: On item 4 Docker will build database image (based on the instructions on the Dockerfile); On item 5 Docker will run the image (corretoresdb) on a Container (works kinda like a virtual machine) on port 5432;

For more technical information on docker I suggest this link