use laradock to start your site

laravel docker

Steps

  1. ~$ git clone https://github.com/Laradock/laradock.git
  2. ~$ cd laradock
  3. laradock$ cp .env.example .env
  4. Add following lines to .env DB_HOST=mysql REDIS_HOST=redis QUEUE_HOST=beanstalkd
  5. laradock$ Execute docker-compose up -d nginx mysql phpmyadmin redis workspace command to start services
  6. laradock$ mkdir ../public
  7. laradock$ vi ../public/index.html ```

hello world

``` 1. open your browser and go to localhost

Change home directory

vi .env APP_CODE_PATH_HOST=../project-z/

Reference