数据库管理审计工具Bytebase部署
为什么选择 Bytebase?
Bytebase 是一个开源数据库 DevOps 工具,它是用于在整个应用程序开发生命周期中管理数据库的 GitLab/GitHub。它为 DBA、开发人员和平台工程师提供了一个基于 Web 的协作工作区
由于 GitLab/GitHub 为团队提供了 GUI 和协作工作区来管理代码,因此 Bytebase 在管理数据库方面也做了类似的工作
官方介绍: https://cn.bytebase.com/docs/introduction/what-is-bytebase
部署环境:
centos \ aws \ redhat操作系统
- 安装docker服务
yum -y install docker
systemctl start docker.service
systemctl enable docker.service
- 创建bytebase的独立网络环境
docker network create --subnet=172.200.0.0/26 bytebase_prod
- Docker 部署bytebase
docker run -d --init \
--name bytebase \
--restart always \
--publish 15678:8080 \
--health-cmd "curl --fail http://localhost:15678/healthz || exit 1" \
--health-interval 5m \
--health-timeout 60s \
--volume ~/.bytebase/data:/var/opt/bytebase \
--network=bytebase_prod \
bytebase/bytebase:2.11.1 \
--data /var/opt/bytebase \
--port 8080
- web界面访问
打开浏览器----->输入 ----> ip:15678