“ZooKeeper安装”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (建立内容为“用 docker-compose 安装 ZooKeeper”的新页面) |
Jihongchang(讨论 | 贡献) |
||
| 第1行: | 第1行: | ||
用 docker-compose 安装 ZooKeeper | 用 docker-compose 安装 ZooKeeper | ||
| + | |||
| + | |||
| + | docker-compose.yml<syntaxhighlight lang="yaml"> | ||
| + | version:"3.1" | ||
| + | service: | ||
| + | zk: | ||
| + | image:daocloud.io/daocloud/zookeeper:latest | ||
| + | restart:always | ||
| + | container_name:zk | ||
| + | ports: | ||
| + | - 2181:2181 | ||
| + | </syntaxhighlight> | ||
2022年8月15日 (一) 22:33的版本
用 docker-compose 安装 ZooKeeper
docker-compose.yml
version:"3.1"
service:
zk:
image:daocloud.io/daocloud/zookeeper:latest
restart:always
container_name:zk
ports:
- 2181:2181