I using version 3.7. I get the following error when running my up command:
The Compose file ‘..\x.yml’ is invalid because:
volumes.w contains an invalid type, it should be a string or a number
volumes.x contains an invalid type, it should be a string or a number
volumes.y contains an invalid type, it should be string or a number
volumes.z contains an invalid type, it should be a string or a number
All volumes causing the errors are in my #‘volumes’ service definition.