Want to change the project deployment steps wrt "docker-compose up" with a yaml config file

Here in the project, deployment is done with gradle build (including docker image creation, not controlled by user). I want to create a specific image for each micro services separately, to have some control over images.

Link to project. (That I want to change)

Link to project. (Example project as which I want above to be changed)/

Source: StackOverflow