# Is docker-compose 3.7 supported?

**URL:** <https://discuss.circleci.com/t/is-docker-compose-3-7-supported/35765>\
**Category:** Build Environment\
**Tags:** docker\
**Created:** [May 3, 2020, 11:13pm UTC](https://discuss.circleci.com/t/is-docker-compose-3-7-supported/35765 "2020-05-03T23:13:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a-barbieri](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a-barbieri/32/24835_2.png) [@a-barbieri](https://discuss.circleci.com/u/a-barbieri)\
**Post date:** [May 3, 2020, 11:13pm UTC](https://discuss.circleci.com/t/is-docker-compose-3-7-supported/35765/1 "2020-05-03T23:13:52Z")

</div>

I’m not new to CI, but it’s the first time I work with CircleCI.

I cannot find any straight forward guide that does what I’m trying to do so after few hours I thought I’d better ask.

I have a `docker-compose.yml` file that works locally. Unfortunately version 3.7 seems not to be supported.

Now, before downgrading the entire structure can anyone confirm that you must run 3.2 at most?

You can see the error here below:  
ERROR: Version in “./docker/docker-compose.yml” is unsupported. You might be seeing this error because you’re using the wrong Compose file version. Either specify a supported version (“2.0”, “2.1”, “3.0”, “3.1”, “3.2”) and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.

Here is my docker-compose.yml [https://github.com/a-barbieri/wp-graphql-relevanssi/blob/c3ba0734f33968f9d0f02dbf745682d98897ecc3/docker/docker-compose.yml](https://github.com/a-barbieri/wp-graphql-relevanssi/blob/c3ba0734f33968f9d0f02dbf745682d98897ecc3/docker/docker-compose.yml)  
For more on the Compose file format versions, see [https://docs.docker.com/compose/compose-file/](https://docs.docker.com/compose/compose-file/)

---

<div class="post-metadata">

**Author:** ![a-barbieri](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/a-barbieri/32/24835_2.png) [@a-barbieri](https://discuss.circleci.com/u/a-barbieri)\
**Post date:** [May 6, 2020, 7:12am UTC](https://discuss.circleci.com/t/is-docker-compose-3-7-supported/35765/2 "2020-05-06T07:12:31Z")

</div>

A night of sleep was much needed. This morning in 5 minutes I’ve been able to find [this piece of guideline](https://circleci.com/docs/2.0/configuration-reference/#available-machine-images) which explains how to specify the image with your preferred docker-compose version.

In my case it is:  
`ubuntu-1604:202004-01`

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [May 16, 2020, 7:12am UTC](https://discuss.circleci.com/t/is-docker-compose-3-7-supported/35765/3 "2020-05-16T07:12:35Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
