2017 © Pedro Peláez
 

library docker-laravel

Docker environment for Laravel projects

image

ekandreas/docker-laravel

Docker environment for Laravel projects

  • Tuesday, March 8, 2016
  • by EkAndreas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 29 Versions
  • 0 % Grown

The README.md

Docker Laravel

License, (*1)

*** WORK IN PROGRESS ***, (*2)

AEKAB uses this package to enable Docker dev environment for Laravel project development., (*3)

Requirements

PHP Composer, (*4)

Docker Machine, (*5)

Step by step, getting started

Step 1, the project root

Install Laravel or go to your Laravel project root, (*6)

composer create-project laravel/laravel theproject

Step into the project folder, (*7)

cd theproject

Step 2, requirements

Install this package with composer and require-dev, (*8)

composer require ekandreas/docker-laravel:* --dev

Step 3, the deployfile (deploy.php)

Create a deploy file in the project root, a file called "deploy.php", eg:, (*9)



<?php
include_once 'vendor/ekandreas/docker-laravel/recipe.php';

server('theproject.dev', 'default')
    ->env('container', 'laravel')
    ->stage('development');

Step 4, ensure .env

Note! It's really important that you have a valid .env -file in the project root because Docker-Laravel will take DB_DATABASE and settings as parameters when creating the mysql container. Set the DB_HOST to same as your Docker machine IP!, (*10)

Partitial example of a .env -file:, (*11)

...
DB_HOST=192.168.99.100
DB_DATABASE=lund
DB_USERNAME=root
DB_PASSWORD=root
...

Step 5, start containers

Run the script command in the terminal at your project root:, (*12)

vendor/bin/dep docker:up development

If you have installed PHP deployer locally then run it without the path to "dep", just:, (*13)

dep docker:up development

Step 6, ensure local DNS

Note! Change your DNS so that the URL points to the docker machine! Eg for Mac:, (*14)

nano /etc/hosts

Then browse to theproject.dev and start develop your awesome web app., (*15)

Stopping the containers for another project

Stop the containers (php+mysql), (*16)

dep docker:stop development

Cleanup

Note! Your web containers will be removed. If you get the wrong laravel image then do:, (*17)

dep docker:cleanup development

And the container will be killed and the image removed to provide a new next startup. Good when need to create new image for Laravel containers., (*18)

..., (*19)

The Versions

08/03 2016

dev-master

9999999-dev

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.9

0.9.9.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.8

0.9.8.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.7

0.9.7.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.6

0.9.6.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.5

0.9.5.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.4

0.9.4.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.3

0.9.3.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.2

0.9.2.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9.1

0.9.1.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

08/03 2016

0.9

0.9.0.0

Docker environment for Laravel projects

  Sources   Download

MIT

The Requires

 

20/02 2016

0.8.12

0.8.12.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

20/02 2016

0.8.11

0.8.11.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

20/02 2016

0.8.10

0.8.10.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

20/02 2016

0.8.9

0.8.9.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

20/02 2016

0.8.8

0.8.8.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

02/02 2016

0.8.7

0.8.7.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

02/02 2016

0.8.6

0.8.6.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

02/02 2016

0.8.5

0.8.5.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

02/02 2016

0.8.4

0.8.4.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

02/02 2016

0.8.3

0.8.3.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

01/02 2016

0.8.2

0.8.2.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

01/02 2016

0.8.1

0.8.1.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

30/01 2016

0.8

0.8.0.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

27/01 2016

0.6

0.6.0.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

26/01 2016

0.5.6

0.5.6.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

26/01 2016

0.5.5

0.5.5.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

26/01 2016

0.5.4

0.5.4.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires

 

24/01 2016

0.4

0.4.0.0

Docker environment for Roots Bedrock projects

  Sources   Download

MIT

The Requires