Clone laravel-bjyblog with git:

git clone https://github.com/baijunyao/laravel-bjyblog.git && cd laravel-bjyblog 

Rename the .env.docker file to .env :

cp .env.docker .env  

Into the php container

docker-compose exec php bash

Composer install:

composer install  

Application Key:

php artisan key:generate  

Migrate:

php artisan migrate  

Seed:

php artisan db:seed  

If you visit the site before db:seed, you need to clear cache:

php artisan cache:clear

To create the symbolic link:

php artisan storage:link

Add laravel-bjyblog.test to hosts file

127.0.0.1 laravel-bjyblog.test

Use a browser to open http://laravel-bjyblog.test