Install Docker
See:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
Install Docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Clone codes
git clone https://github.com/yeszao/dnmp.git
cd dnmp
cp env.sample .env
docker-compose up
Check
Open browser and go to http://localhost
PS
Run in daemon and stop:
docker-compose up -d
docker-compose stop
See your ports:
netstat -anp | grep tcp