Need a laravel development environment that just works with 2 commands? I did too, that's why I created this GitHub repo. LaravelDocker comes with 5.7 installed and working out of the box with it's default configuration. I've also included adminer, which I have found useful as a lightweight interface to manage the mysql instance included with this package.
All you need to do is move your specific project's files into the laravel folder to get your own project files up and running. If your starting from scratch, this repository should be all you need to get started.
I've released this package under the MIT license for ease of use.
All you need is the Docker Engine installed on your machine.
For Windows 10 Pro - Docker Desktop For Windows 10 Home - https://docs.docker.com/toolbox/toolbox_install_windows/ For Mac - https://hub.docker.com/editions/community/docker-ce-desktop-mac
Most major linux distributions also contain a docker package in their repositories. See your distributions documentation for details.
- Clone this repository
- docker run --rm -v <full_path_to_laravel_dir>:/app composer install
- docker-compose up -d
- browse to http://localhost
- adminer is available at http://localhost:8080
This can be done from your command line. A quick example: docker-compose exec app php artisan migrate
. For further details please reference these urls:
- https://docs.docker.com/compose/reference/exec/
- https://docs.docker.com/engine/reference/commandline/exec/
Please file an issue in this repo's issue tracker. I'll do my best to keep this repository up to date and address any concerns or requests.
If you have benefitted from this project, I'd love to hear from you. Feel free to drop me a note in [email protected]. It's always good to hear feedback of any kind on the projects that I have worked on.