docker 部署zabbix4.2.5
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
mkdir -p /data/zabbix/mysql
docker run --name mysql-server -t
-e MYSQL_DATABASE="zabbix"
-e MYSQL_USER="zabbix"
-e MYSQL_PASSWORD="zabbix"
-e MYSQL_ROOT_PASSWORD="1234.com"
-v /etc/localtime:/etc/localtime
-v /data/zabbix/mysql:/var/lib/mysql
-d skydaiji/mysql:5.7
--character-set-server=utf8 --collation-server=utf8_bin
docker run --name zabbix-java-gateway -t
--hostname zabbix-java-gateway
--restart=always
-v /etc/localtime:/etc/localtime
-d zabbix/zabbix-java-gateway:alpine-4.2.5
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"
-e MYSQL_ROOT_PASSWORD="1234.com"
-e ZBX_JAVAGATEWAY="zabbix-java-gateway"
-e ZBX_JAVAGATEWAY_ENABLE="true"
--link mysql-server:mysql
--link zabbix-java-gateway:zabbix-java-gateway
-v /etc/localtime:/etc/localtime
-p 10051:10051
-v /data/zabbix/alertscripts:/usr/lib/zabbix/alertscripts
-d skydaiji/zabbix-server-mysql:4.2.5
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"
-e PHP_TZ="Asia/Shanghai"
-e MYSQL_ROOT_PASSWORD="1234.com"
--link mysql-server:mysql
--link zabbix-server-mysql:zabbix-server
-p 80:80
-d skydaiji/zabbix-web-nginx-mysql:4.2.5