# Multiple service app with docker-compose in docker executor (Cypress tests)

**URL:** <https://discuss.circleci.com/t/multiple-service-app-with-docker-compose-in-docker-executor-cypress-tests/35933>\
**Category:** Running Tests\
**Created:** [May 14, 2020, 8:14am UTC](https://discuss.circleci.com/t/multiple-service-app-with-docker-compose-in-docker-executor-cypress-tests/35933 "2020-05-14T08:14:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfrachet](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@mfrachet](https://discuss.circleci.com/u/mfrachet)\
**Post date:** [May 14, 2020, 8:14am UTC](https://discuss.circleci.com/t/multiple-service-app-with-docker-compose-in-docker-executor-cypress-tests/35933/1 "2020-05-14T08:14:14Z")

</div>

I’m actually working on improving the time taken to run our Cypress test suites.

For now, we use a machine executor and we rely on `docker-compose` to prepare all the services (pretty convenient, since it’s the way we use it locally).

The problem is that the machine spawning (depending on the availability) is the step that takes most of the time in our scenarios (expect running the tests step). While spawning a docker image in a docker executor takes \< 10 seconds, sometime, in a machine executor, it takes 2mns to have a machine.

So is it possible to have a docker executor that runs docker-compose (I already read [https://support.circleci.com/hc/en-us/articles/115013854647-How-do-I-use-docker-compose-with-docker-executor-](https://support.circleci.com/hc/en-us/articles/115013854647-How-do-I-use-docker-compose-with-docker-executor-)) and that allows to share the network on localhost?

I would like to be able to reach the services spawn by compose on localhost

---

<div class="post-metadata">

**Author:** ![zfigz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/zfigz/32/24970_2.png) [@zfigz](https://discuss.circleci.com/u/zfigz)\
**Post date:** [May 15, 2020, 7:15pm UTC](https://discuss.circleci.com/t/multiple-service-app-with-docker-compose-in-docker-executor-cypress-tests/35933/2 "2020-05-15T19:15:05Z")

</div>

ditto, i’m curious about this as well.
