Docker Compose and Automated Builds

Team,
I was wondering if we can use docker-compose.yml for automated build process on (cloud.docker.com). My application contains different modules with respective dockerfile and also a docker-compose.yml…

What I want is that all the modules built with separate images when I check-in my code changes.

If this is not possible or supported, what are my options to build all modules on one check-in?

Example:
Lets say I a web component and it’s api services (backend) component, can we build them on one file check-in in the source control(Git) using docker-compose?

Thank you.