Skip to content

seanmccabe/docker-laravel

Repository files navigation

docker-laravel 🐳

docker-laravel

Test laravel-create-project.yml Test laravel-git-clone.yml License

Introduction

Build a simple laravel development environment with docker-compose. Compatible with Windows(WSL2), macOS(M1) and Linux.

Usage

Laravel install

  1. Click Use this template
  2. Git clone & change directory
  3. Execute the following command
$ make create-project

# or...

$ mkdir -p src
$ docker compose build
$ docker compose up -d
$ docker compose exec app composer create-project --prefer-dist laravel/laravel .
$ docker compose exec app php artisan key:generate
$ docker compose exec app php artisan storage:link
$ docker compose exec app chmod -R 777 storage bootstrap/cache
$ docker compose exec app php artisan migrate

http://localhost

Laravel setup

  1. Git clone & change directory
  2. Execute the following command
$ make install

http://localhost

Tips

Container structures

├── app
├── web
└── db

app container

web container

db container

mailpit container

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published