Skip to content

Docker build files for Laravel 5 environment on PHP 7 and Apache

Notifications You must be signed in to change notification settings

patrickc91/docker-php7-laravel5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5 Environment

Image to run Laravel 5 apps under Apache 2 and PHP 7. Also include NPM and a few tools to help build our JS app.

Included

Works with LDAP Works with MSSQL via freetds and pdo_dblib

PHP 7 with modules:

  • intl
  • mbstring
  • mcrypt
  • pcntl
  • pdo_dblib
  • pdo_mysql
  • pdo_pgsql
  • pgsql
  • zip
  • opcache
  • ldap

nodejs with global npm modules:

  • bower
  • gulp
  • protractor
  • jscs
  • jshint
  • typings
  • typescript

How to build

docker build -t bquinn/laravel .

How to run

You should have your website code in a subdirectory of your user dir, like ~/docker/my-site

docker run -itP -v ~/<project path>:/var/www/laravel bquinn/laravel

Open Kitematic, find the mapped port Open browser to your docker IP and the correct port, e.g. http://192.168.99.100:32769/

To set up a new Laravel project directory

To install a new laravel instance onto your file system folder, mount a volume and then run: composer create-project laravel/laravel /var/www/laravel --prefer-dist

To test database connection in container

tsql -H <hostname> -U <username> -P <password> -D <database name>

About

Docker build files for Laravel 5 environment on PHP 7 and Apache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ApacheConf 100.0%