- Run
docker-compose up
to lounch postgres db and expose in 5432 port for test if everything works. - Run
docker-compose up -d
to start Postgres db and expose it in port 5432 and keep it in the background. - Run
docker-compose down
to stop Postgres db. - To navigate inside the docker digit
docker ps
and find the id of container and digitdocker exec -it <id> bash
tadaan!
This docker launches postgres and creates a folder at the same level for file permanence