- php
- PHP8.0
- nginx
- stable
- db
- mysql:5.7
- php-my-admin
- stable
(Terminalで実行してください / 最初の $
はプロンプトを意味します、 $
のコピペは不要です)
.env.default
から.env
をコピーして作成.env
内で定義されているCOMPOSE_PROJECT_NAME=DEFAULT
のDEFAULT
を任意の名前に変更- $
docker-compose -p <.envで定義したCOMPOSE_PROJECT_NAME=DEFAULTの値> up -d
- $
docker-compose exec php bash
- $
laravel new public