Networking in Compose | Docker Documentation
docs.docker.com › compose › networkingWhen deploying a Compose application on an Docker Engine with Swarm mode enabled , you can make use of the built-in overlay driver to enable multi-host communication. Consult the Swarm mode section, to see how to set up a Swarm cluster, and the Getting started with multi-host networking to learn about multi-host overlay networks.
docker-compose网络配置 - 简书
https://www.jianshu.com/p/347831f72d1c28.08.2019 · 配置方式. network_mode: "bridge" network_mode: "host" network_mode: "none" network_mode: "service: [service name]" network_mode: "container: [container name/id]" 下面的docker-compose将不会生成新的网络. version: '3.4' services: web-1: network_mode: bridge image: redis-web:1.0 container_name: web1 redis: network_mode: bridge image ...