Running $ docker-compose up
when I have my docker-compose.yml
as the following, everything works as expected:
app:
build: .
However when I have docker-compose.yml
as (which appears to valid within the docker-compose reference):
app:
build:
context: .
I get the following error:
$ docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
app.build contains an invalid type, it should be a string
I've also tried context: "."
with no joy. Please help! Many thanks.