Changing default route in a Docker container

I use typically macvlan-based network driver for my containers in order to have an experience close to VM on my home network, and rely on docker-compose for their instanciation. In that particular case I was doing the following configuration in my docker-compose.yml: networks: backend: physical: external: true The network ‘physical’ is defining my layer 2 ethernet home network, while ‘backend’ defines a classical docker bridge without any special consideration for the supporting database, appcode etc.