Skip to content

Laravel 5.7 development environment within docker. 2 command setup.

License

Notifications You must be signed in to change notification settings

NebriBlackwing/LaravelDocker

Repository files navigation

Introduction

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.

Prerequisites

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.

Running Instructions

  1. Clone this repository
  2. docker run --rm -v <full_path_to_laravel_dir>:/app composer install
  3. docker-compose up -d
  4. browse to http://localhost
  5. adminer is available at http://localhost:8080

FAQ

How do I run php artisan inside the docker container?

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:

Found a problem? Need support?

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.

Did you find this project useful?

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.

About

Laravel 5.7 development environment within docker. 2 command setup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published