as you can see I am using extend to inherit options from another docker-compose file. In dealing with networking I found that the network settings only get respected if they are configured in the root file.
to show you what I mean lets rip the networks configuration from the root file above
Now lets go into the file its extending and put the same network options there
after trying to run the stack, I get this error
heres a shot of the last file in the hierarchy
If I wanted to, I could rip the settings out of here also and it will still work. all files can reference the network being configured in the root file. In total there are four files extending each-other with one being the root
I find that docker-compose requires I put those network settings in the root file that begins the extending.