Skip to content

A quick plug-and-play setup for a Laravel-Docker project

Notifications You must be signed in to change notification settings

shsma/laravel-docker

Repository files navigation

Laravel-Docker plug-and-play

This is a quick plug-and-play setup for your Laravel-Docker projects

Comes with:

  • web-app: Laravel/PHP-7.2
  • web-server: Nginx:alpine
  • database: Mysql-5.7.22

Setup

  • git clone [email protected]:shsma/laravel-docker.git
  • cd laravel-docker-master
  • docker-compose up -d
  • docker exec app composer install
  • cp .env.example .env
  • docker-compose exec app php artisan key:generate

Now that all containers are up, we can add 127.0.0.1 project.local to our /etc/hosts file

Boom! access project.local on your favorite browser

Questions and Improvements

For any question or emprovement please send an e-mail to Shady Smaoui [email protected].

License

ShadySmaoui©2020 licensed under the MIT license.

About

A quick plug-and-play setup for a Laravel-Docker project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published