I'm getting this error when I tried to docker-compose build my docker-compose.yml file:
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.
docker version
Client: Version: 1.12.6 API version: 1.24 Go version: go1.6.3 Git commit: 78d1802 Built: Tue Jan 31 23:47:34 2017 OS/Arch: linux/amd64
Server: Version: 1.12.6 API version: 1.24 Go version: go1.6.3 Git commit: 78d1802 Built: Tue Jan 31 23:47:34 2017 OS/Arch: linux/amd64
docker --version Docker version 1.12.6, build 78d1802
docker-compose --version docker-compose version 1.5.2, build unknown
is this because the build unknown?
docker-composer.yml
version: "2"
services:
postgres:
image: postgres:9.6
volumes:
- pgdata:/var/lib/data/postgres
backend:
build: .
command: gosu app bash
volumes:
- .:/app
- pyenv:/python
links:
- postgres:postgres
ports:
- 8000:8000
volumes:
pyenv:
pgdata: