Compose: ERROR: The Compose file './docker-compose.yml' is invalid because: services.web.volumes contains an invalid type, it should be a string

Created on 3 May 2020  Â·  2Comments  Â·  Source: docker/compose

Trying to setup docker-compose file and it doesn't work

Followed code for docker-compose file

Screenshot from 2020-05-03 22-31-31

Docker Version: 19.03.8
docker-compose version 1.24.0, build 0aa59064

kinbug

Most helpful comment

looks like there's a space in the line

- .: /app

did you try removing the space before /app?

- .:/app

All 2 comments

looks like there's a space in the line

- .: /app

did you try removing the space before /app?

- .:/app

Thanks. it worked

Was this page helpful?
0 / 5 - 0 ratings