docker-compose安装zookeeper
时间: 2023-11-13 16:55:12 浏览: 176
zookeeper的安装
好的,以下是安装zookeeper的docker-compose文件示例:
```
version: '3'
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
```
将上述内容保存为 `docker-compose.yml` 文件,然后在该文件所在目录下运行以下命令即可启动zookeeper:
```
docker-compose up -d
```
阅读全文