docker run --name php-fpm -p 9000:9000 -d php:fpm
mkdir -p /opt/php/{conf,html} && cd docker/php
docker cp php-fpm:/usr/local/etc/php-fpm.d/www.conf /opt/php/conf/www.conf
docker cp php-fpm:/usr/local/etc/php/php.ini-production /opt/php/conf/php.ini
docker rm -f php-fpm
docker run -d \
--name php \
--restart=always \
--link mysql \
-p 9000:9000 \
-v /opt/php/html:/var/www/html \
-v /opt/php/conf/www.conf:/usr/local/etc/php-fpm.d/www.conf \
-v /opt/php/conf/php.ini:/usr/local/etc/php/php.ini \
php:fpm
grant all on zabbix.* to 'zabbix'@'%' identified by 'zabbix';
docker run --name zabbix-server -t \-e DB_SERVER_HOST="mysql" \-e MYSQL_DATABASE="zabbix" \-e MYSQL_USER="zabbix" \-e MYSQL_PASSWORD="zabbix" \-e MYSQL_ROOT_PASSWORD="123" \--restart=unless-stopped \-p 10051:10051 \-d zabbix/zabbix-server-mysql
docker run --name zabbix-web -t \-e ZBX_SERVER_HOST="zabbix-server" \-e DB_SERVER_HOST="mysql" \-e MYSQL_DATABASE="zabbix" \-e MYSQL_USER="zabbix" \-e MYSQL_PASSWORD="zabbix_pwd" \-e MYSQL_ROOT_PASSWORD="root_pwd" \--network=zabbix-net \-p 80:8080 \--restart unless-stopped \-d zabbix/zabbix-web-nginx-mysql