Share and learn in the Docker community.
We still prefer valid yaml content, as It’s cumbersome to read it, if it’s not properly formatted and can hide other problems with the compose file content.
The forum search should have found a couple of useful topics about macvlan.
Most likely this is what causes the problem.
This solution should appy to your case as well.