From the bits that I've looked into, the namespace, cgroup and filesystem tricks seemed relatively easy to understand - but there seems to be a whole lot of highly specific networking configuration going on (including lots of IPTables rules) that I couldn't make sense of yet.
Is there any writeup about those, or why they are there? Is this just to separate the different "networks" in a compose setup, or is there more going on?