Okay, this is actually pretty simple to achieve. First create a user-defined network in Docker: # docker network create my_networkThen configure the Network Type for all containers which need direct access to each other to Custom: my_network. Remove port mappings which are only needed for internal traffic. Container names will resolve to the (internal) IP address.