Download the PHP package ekandreas/docker-laravel without Composer
On this page you can find all versions of the php package ekandreas/docker-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ekandreas/docker-laravel
More information about ekandreas/docker-laravel
Files in ekandreas/docker-laravel
Package docker-laravel
Short Description Docker environment for Laravel projects
License MIT
Informations about the package docker-laravel
Docker Laravel
WORK IN PROGRESS
AEKAB uses this package to enable Docker dev environment for Laravel project development.
Requirements
Step by step, getting started
Step 1, the project root
Install Laravel or go to your Laravel project root
Step into the project folder
Step 2, requirements
Install this package with composer and require-dev
Step 3, the deployfile (deploy.php)
Create a deploy file in the project root, a file called "deploy.php", eg:
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!
Partitial example of a .env -file:
Step 5, start containers
Run the script command in the terminal at your project root:
If you have installed PHP deployer locally then run it without the path to "dep", just:
Step 6, ensure local DNS
Note! Change your DNS so that the URL points to the docker machine! Eg for Mac:
Then browse to theproject.dev and start develop your awesome web app.
Stopping the containers for another project
Stop the containers (php+mysql)
Cleanup
Note! Your web containers will be removed. If you get the wrong laravel image then do:
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.
...