How can I run a docker container from a github repository?

  build, docker, github, postgresql, spring-boot

The repository contains a docker project that initiates script with postgres db.
I need to initiate the db with docker on build and use it in my spring boot application that is started.
I am totally fresh to docker…
Could someone help?

Source: Docker Questions