Install Docker

See:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

Install Docker-compose

  1. 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
  2. sudo chmod +x /usr/local/bin/docker-compose

Clone codes

  1. git clone https://github.com/yeszao/dnmp.git
  2. cd dnmp
  3. cp env.sample .env
  4. docker-compose up

Check

Open browser and go to http://localhost

PS

Run in daemon and stop:

  1. docker-compose up -d
  2. docker-compose stop

See your ports:

  1. netstat -anp | grep tcp