Starting from TeamCity 2017.2 EAP1, TeamCity comes with built-in Docker support, which includes the Docker Compose runner.
The runner allows starting docker-compose build services, and shutting down those services at the end of the build.
The executed commands are
When using docker-compose with images which support HEALTHCHECK, TeamCity will wait for the
healthy status of all containers, which support this parameter.
If the start of Docker Compose was successful, TeamCity agent will register the TEAMCITY_DOCKER_NETWORK environment variable containing the name of the docker-compose default network. This network will be passed transparently to the Docker Wrapper when used in some build runners.