方式一
docker network create --driver bridge --subnet 172.23.0.0/25 --gateway 172.23.0.1 zookeeper_network
services:
xxx:
networks:
default:
ipv4_address: 172.23.0.11
networks:
default:
external:
name: zookeeper_network