编写docker-compose.yml文件,定制dubbo-admin和zookeeper组合服务,并启动运行。
程序员文章站
2022-05-22 20:34:58
...
1、编写docker-compose.yml文件:
version: '3.4'
services:
zk_server:
image: zookeeper:3.4
ports:
- 2181:2181
dubbo-admin:
image: dubbo-admin:1.0
links:
- zk_server:zookeeper
depends_on:
- zk_server
ports:
- 7001:7001
2、启动服务:
docker-compose up
3、验证服务: