1. Download the image

PHP :7.3- FPM 3 ngixn docker pull nginx

Two. Start the container

1. Start the Mysql

docker run -d -p 3306:3306 –restart always -e mysql-password_root –name mysql mysql

2. Start the PHP

Docker run – d – p – 9000-9000 restart always: – v/LNMP/WWW/HTML/var/WWW/HTML – link mysql: mysql – name php7 PHP: 7.3 – FPM

3. Start ngixn

docker run -d -p 80:80 –restart always -v /lnmp/www/html:/usr/share/nginx/html –link php7:php –name nginx nginx

Three configuration nginx

Docker exec -it nginx /bin/bash

Docker cp nginx: / etc/nginx/conf. D/default. Conf/LNMP/default conf out a copy of nginx container nginx configuration change.