Deterministic docker-network to container interface is a must in multi-network setups Docker-compose has a priority mechanism to let the containers connect in order to the given networks
However, docker itself doesn't seem to take that into account
Instead, ethX order in the containers is determined by the lexical order of network names