Skip to content

mothergroup/laravel-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose-laravel

A pretty simplified docker-compose workflow that sets up a LEMP network of containers for local Laravel development. You can view the full article that inspired this repo here.

Usage

To get started, make sure you have Docker installed on your system, and then clone this repository. Then open a terminal and from this cloned respository's root run docker-compose up -d --build.

Connect with the docker container using docker exec -it php sh and run the following:

cp -R .env.example .env
chmod -R 777 storage
composer install
php artisan migrate
php artisan key:generate
php artisan db:seed

Open up your browser of choice to http://localhost:8080 and you should see your Laravel app running as intended.

Containers created and their ports are as follows:

  • nginx - :8080
  • mysql - :3307
  • php - :9000

About

A basic docker template for laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages