Docker安装Zabbix
51CTO博客:Leo_1024:Docker安装Zabbix
劳福喜博客:centos7.5通过docker安装zabbix server
CSDN:China.people:Docker-Zabbix
一、Docker安装Zabbix
1.1 pull镜像
docker pull mysql:5.7
docker pull zabbix/zabbix-java-gateway:latest
docker pull zabbix/zabbix-server-mysql:latest
docker pull zabbix/zabbix-web-nginx-mysql:latest
1.2 启动MYSQL-SERVER
docker run --name mysql-server -t -e MYSQL_DATABASE="zabbix" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="zabbix_pwd" -e MYSQL_ROOT_PASSWORD="root_pwd" -d mysql:5.7
1.3 启动ZABBIX-JAVA-GATEWAY
docker run --name zabbix-java-gateway -t -d zabbix/zabbix-java-gateway:latest
1.4 启动ZABBIX-SERVER-MYSQL
docker run --name zabbix-server-mysql -t -e DB_SERVER_HOST="mysql-server" -e MYSQL_DATABASE="zabbix" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="zabbix_pwd" -e MYSQL_ROOT_PASSWORD="root_pwd" -e ZBX_JAVAGATEWAY="zabbix-java-gateway" --link mysql-server:mysql --link zabbix-java-gateway:zabbix-java-gateway -p 10051:10051 -d zabbix/zabbix-server-mysql:latest
1.5 启动ZABBIX-WEB-NGINX-MYSQL
docker run --name zabbix-web-nginx-mysql -t -e DB_SERVER_HOST="mysql-server" -e MYSQL_DATABASE="zabbix" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="zabbix_pwd" -e MYSQL_ROOT_PASSWORD="root_pwd" --link mysql-server:mysql --link zabbix-server-mysql:zabbix-server -p 80:80 -d zabbix/zabbix-web-nginx-mysql:latest
等待系统初始化,然后使用浏览器登陆,用户名:Admin,密码:zabbix