Getting:
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
On docker-compose build. Trying to install on a clean Ubuntu 16.04 VPS.
Further details:
$ docker version
Client:
Version: 1.12.6
API version: 1.24
Go version: go1.6.2
Git commit: 78d1802
Built: Tue Jan 31 23:35:14 2017
OS/Arch: linux/amd64
Server:
Version: 1.12.6
API version: 1.24
Go version: go1.6.2
Git commit: 78d1802
Built: Tue Jan 31 23:35:14 2017
OS/Arch: linux/amd64
And:
docker-compose version 1.5.2, build unknown
docker-py version: 1.8.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
We really need more documentation (well, I need), or something that would make the installation a tad simpler.
Can you paste your docker-compose.yml file? It looks like the version key might be indented incorrectly.
@krainboltgreene destroyed the VPS. The docker-compose.yml was the same one as this https://github.com/tootsuite/mastodon/blob/master/docker-compose.yml
@Fastidious I would check here for a solution: https://github.com/docker/compose/issues/3331
@krainboltgreene did come across that, yes. No dice. I will try again with Ubuntu 16.10 this time, and see how it goes.
@Gargron is there a bistro you recommend? If Azure has it, I will pick whatever you recommend to make the install easier.
I ran into the same error message. Turned out to be the wrong version of docker-compose. I followed the instructions at https://github.com/docker/compose/releases to update and it ran fine after that.
@Fastidious Please don't use 16.10. 16.04 is LTS, a lot more stable. mastodon.social and my dev machine are all running on 16.04 so that's not the core of the issue.
@snomofomo is right: the version key was introduced in v2.0 of the docker-compose.yml spec introduced in docker-compose 1.6.0, so you'll need that version or higher. (I can confirm 1.11.1 works.)
Ran into the same problem with Ubuntu LTS 16.04 on Intel. My info reads:
root@mastodon-dev:~/src/github.com/tootsuite/mastodon# docker-compose version
docker-compose version 1.5.2, build unknown
docker-py version: 1.8.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
Therefore the default docker-compose you get when you do apt-get install docker-compose on Ubuntu 16.04 is too old.
That's... very old. As pointed out, you'll need a later version to use modern docker-compose files:

Version 1.5.2 was released in December 2015
My guess is this is why the official installation instructions don't use distro package managers.
This instruction for Ubuntu are quite good:
https://github.com/ummjackson/mastodon-guide/blob/master/up-and-running.md
@Fastidious were you able to fix your issue by updating your docker compose ?
@Fastidious just following up – were you able to resolve this issue but upgrading to a newer docker-compose?
@ashfurrow yes, upgraded docker-compose.
Great! I'm glad to hear that.
Most helpful comment
@snomofomo is right: the
versionkey was introduced in v2.0 of thedocker-compose.ymlspec introduced in docker-compose 1.6.0, so you'll need that version or higher. (I can confirm 1.11.1 works.)