![A small, yet undocumented bug with yml files (docker-compose.yml) and anchors. | by Will Barillon | Medium A small, yet undocumented bug with yml files (docker-compose.yml) and anchors. | by Will Barillon | Medium](https://miro.medium.com/v2/resize:fit:1110/1*P_SwtkTYiN86p5nSIrRi4g.png)
A small, yet undocumented bug with yml files (docker-compose.yml) and anchors. | by Will Barillon | Medium
![ERROR: The Compose file './docker-compose.yml' is invalid because: services.web.volumes contains an invalid type, it should be a string · Issue #7421 · docker/compose · GitHub ERROR: The Compose file './docker-compose.yml' is invalid because: services.web.volumes contains an invalid type, it should be a string · Issue #7421 · docker/compose · GitHub](https://user-images.githubusercontent.com/30982642/80920512-f8a9bc80-8d8d-11ea-88ec-9482b7ac1fc0.png)
ERROR: The Compose file './docker-compose.yml' is invalid because: services.web.volumes contains an invalid type, it should be a string · Issue #7421 · docker/compose · GitHub
![Variable substitution in docker-compose.yml file when running docker-compose with sudo - Stack Overflow Variable substitution in docker-compose.yml file when running docker-compose with sudo - Stack Overflow](https://i.stack.imgur.com/hLRca.png)