0%

Docker Compose网络配置

配置默认网络并设置子网:

1
2
3
4
5
6
7
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.17.2.0/24

使用已存在的网络:

1
2
3
4
networks:
default:
external:
name: other-existing-network