ClusterControl docker 环境搭建

时间:2023-03-10 06:42:31
ClusterControl docker 环境搭建

ClusterControl 是一款比较强大的数据库管理平台,包含了丰富的数据库管理功能。
我们可以用来方便的进行数据管理

测试使用docker-compose 管理

环境准备

  • docker-compose 文件
version: "3"
services:
clustercontrol:
image: severalnines/clustercontrol
hostname: clustercontrol
privileged: true
volumes:
- "./storage1/clustercontrol/cmon.d:/etc/cmon.d"
- "./storage2/clustercontrol/sshkey:/root/.ssh"
- "./storage3/clustercontrol/cmonlib:/var/lib/cmon"
- "./storage4/clustercontrol/cmon.d:/etc/cmon.d"
- "./storage5/clustercontrol/backups:/root/backups"
ports:
- "5000:80"
- "5001:443"

启动&&测试

  • 启动
docker-compose up -d
  • 登陆界面
http://ip:5000/clustercontrol
  • 效果

ClusterControl docker 环境搭建
ClusterControl docker 环境搭建
ClusterControl docker 环境搭建

说明

以上只是简单的环境搭建,集群的创建后边有会相关的介绍

参考资料

https://github.com/severalnines/docker
https://hub.docker.com/r/severalnines/clustercontrol
https://github.com/rongfengliang/clustercontrol-docker-compose