LoginSignup
166
154

【忙しい人向け】カップ麺より早く作るDockerでLaravel開発環境構築

Last updated at Posted at 2019-10-30

コピペするだけ。

git clone https://github.com/ucan-lab/docker-laravel.git
cd docker-laravel

# Makeコマンド用意しています。
make create-project

# or 1コマンドずつ打ちたい人はこちら
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

スクリーンショット 2019-10-31 14.44.31.png

GitHub

参考

166
154
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
166
154