Skip to content

Latest commit

 

History

History
63 lines (57 loc) · 1.35 KB

README.md

File metadata and controls

63 lines (57 loc) · 1.35 KB

Docker version of Laravel Homestead

How To build it

  1. OS ubuntu14.04
   mv Dockerfile.ubuntu Dockerfile
   docker build -t laravel-docker .
  1. OS Mac
   mv Dockerfile.mac Dockerfile
   docker build -t laravel-docker .

laravel version 5.4

Build Information

You can find the latest build details on the Docker Hub

What works

  • Nginx 1.12
  • PHP 7.0
  • SQLite
  • MySQL 5.5
  • Redis
  • NodeJS
  • Bower
  • Gulp
  • Composer
  • Laravel Envoy
  • Laravel Installer

How to use the container

How to find and use the image (the easy way)

  1. Search for ninjia
  2. docker pull ninjia/laravel-docker
  3. Point the /var/www/html/app volume to your local application directory.

CLI (the other easy way)

  1. Pull in the image
  docker pull ninjia/laravel-docker
  1. Run the container
  docker run --name laravel -d -p 8088:80 -v /path/to/your/app:/var/www/html/app ninjia/laravel-docker
  1. Stop or start container
  docker stop laravel
  docker start laravel
  1. SSH to container
  docker exec -ti laravel /bin/bash
  supervisorctl reload
  cd /var/www/html/app

MySQL Details

ubuntu image

  • MySQL Username = homestead
  • MySQL Password = secret
  • MySQL Database = homestead