Quando executo o "docker-compose build" para o exemplo yaml da aula 6 ocorre o erro abaixo.
"ERROR: The Compose file '.\docker-compose.yml' is invalid because: Invalid top-level property "Da mesma forma, dizemos que o serviço do nginx depende dos serviços node1, node2 e node3". Valid top-level sections for this Compose file are: version, services, networks, volumes, and extensions starting with "x-".
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") 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.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/"
A versão do docker-compose instalada é informada abaixo e preciso ataualizá-la sobre o Windows 10. docker-compose version 1.24.1, build 4667896b docker-py version: 3.7.3 CPython version: 3.6.8 OpenSSL version: OpenSSL 1.0.2q 20 Nov 2018 PS C:\Docker\Docker cap6\alura-docker-cap06>
Grato, Franklanio