Centos7下Docker搭建iTop(ITSM工具)
Docker安装和启动
省略
Docker运行iTop
sudo docker run -d -p 8080:80 \
--name=my-itop \
-v /AppHome/itop/conf:/var/www/html/conf \
-v /AppHome/itop/mysql:/var/lib/mysql \
vbkunin/itop:3.0.3
#修复文件夹的权限
docker exec my-itop chown www-data:www-data /var/www/html/conf
命令获取 MySQL 用户凭据
因为只是验证阶段,为了快速部署使用了自带mysql的镜像,如果不内置mysql,需要使用xxx-base
的镜像
docker logs my-itop | grep -A7 -B1 "Your MySQL user 'admin' has password:"
###输出内容
Your MySQL user 'admin' has password: CQ9VrHjNWBiV
You can now connect to this MySQL Server using:
mysql -uadmin -pCQ9VrHjNWBiV -h<host> -P<port>
安装Itop
浏览器打开itop(公网ip+8080端口),下一步下一步即可安装部署完毕
参考
1.https://hub.docker.com/r/vbkunin/itop
2.https://developer.aliyun.com/article/767033
3.https://blog.csdn.net/qyq88888/article/details/123606916
4.https://devopssec.gitee.io/blog/2018/12/01/%E5%BC%80%E6%BA%90ITSM%E5%B7%A5%E5%85%B7iTop%E4%BB%8E%E5%B0%8F%E7%99%BD%E5%88%B0%E5%85%A5%E9%97%A8-iTop%E4%BB%8B%E7%BB%8D%E4%B8%8E%E5%AE%89%E8%A3%85/