I just saw the new extension fields
in Docker Compose v3.4 and tried to use it in combination with partially override.
My compose files looks like this:
version: '3.4'
x-environment:
&default-environment
- FOO=foo
- BAR=bar
services:
myservice:
[...]
environment:
<< : *default-environment
- BAZ=baz
When I try to run it, I get:
ERROR: yaml.parser.ParserError: while parsing a block mapping
expected <block end>, but found '-'
(for my line "<< : *default-environment")
Any ideas?