DEV Community

loading...

Discussion on: The beauty of Docker for local Laravel development

Collapse
slither366 profile image
David Fernando Flores Lujan

Hello friends, I follow all the tips step by step but I had the next problem, please can you help me:

$ docker-compose build
The Compose file '.\docker-compose.yml' is invalid because:
services.nginx.networks contains an invalid type, it should be an array, or an object

Collapse
aschmelyun profile image
Andrew Schmelyun Author

Hey David!

Check your spacing on that file. It should be indented appropriately, and possibly even have to use spaces instead of tabs. If you need to, you can compare it against the current docker-compose.yml file in the repository for that tutorial: github.com/aschmelyun/docker-compo...