目錄裡面對應的檔案要先修改

=== 設定修改

[docker-compose]

 docker-compose.yml ./backend 在執行docker-compose目錄下建立backend目錄,或者是移動位置

db-store 使用的是 volumes

[mysql]

 infra/docker/mysql/Dockerfile

mysql user password root 等等自行變更,變更後要記得修改 infra/docker/php/Dockerfile

 infra/docker/mysql/my.cnf

collation_server = utf8mb4_unicode_ci

[php]

 infra/docker/php/Dockerfile 如果上面mysql設定有變更,記得這裡也要跟著變更

ENV TZ=Asia/Taipei

LANGUAGE=en_US:UTF-8

 infra/docker/php/php.ini

mbstring.language = zh-tw

[nginx]

 infra/docker/nginx/Dockerfile

ENV TZ=UTC+8

=== 指令開始執行

  
docker-compose up -d  
    
docker-compose exec app composer create-project --prefer-dist laravel/laravel .  

== jetstream Livewire !Now No Use

  
docker-compose exec app composer require laravel/jetstream  
docker-compose exec app php artisan jetstream:install livewire  --teams  
docker-compose exec app php artisan migrate  
  
docker-compose exec web yarn install  
docker-compose exec web yarn dev  

== jetstream end

== Laravel UI Bootstrap Auth *more easy

  
docker-compose exec app composer require laravel/ui  
docker-compose exec app php artisan ui bootstrap --auth  
[ docker-compose exec app php artisan migrate ]  
  
docker-compose exec web yarn install  
docker-compose exec web yarn run dev  
  
[ docker-compose exec web yarn add vue-template-compiler --dev --production=false ]  

== Laravel UI Bootstrap end

  
docker-compose exec app composer require doctrine/dbal  
docker-compose exec app composer require --dev barryvdh/laravel-ide-helper  
docker-compose exec app composer require --dev beyondcode/laravel-dump-server  
docker-compose exec app composer require --dev barryvdh/laravel-debugbar  
docker-compose exec app composer require --dev roave/security-advisories:dev-master  
docker-compose exec app php artisan vendor:publish --provider="BeyondCode\DumpServer\DumpServerServiceProvider"  
docker-compose exec app php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"  

=== remove all

  
docker-compose down --rmi all --volumes  
docker-compose down --volumes  

.參考:

https://github.com/ucan-lab/docker-laravel

https://github.com/ucan-lab/docker-laravel/blob/master/Makefile

https://qiita.com/ucan-lab/items/7824d1293fef4698c212