this repository is based ucan-lab/docker-laravel
Build a simple laravel development environment with docker-compose.
$ git clone git@github.com:tokku5552/php-docker-nginx-postgresql.git
$ cd php-docker-nginx-postgresql
$ make create-project # Install the latest Laravel project
$ make install-recommend-packages # Optional
-
Read this Makefile.
-
コンテナを作成する
make up
- コンテナを破棄する
make down
- コンテナを再作成する
make restart
- コンテナ、イメージ、ボリュームを破棄する
make destroy
- コンテナ、ボリュームを破棄する
make destroy-volumes
- コンテナ、イメージ、ボリュームを破棄して再構築
make remake
- appコンテナに入る
make app
- webコンテナに入る
make web
- dbコンテナに入る
make db
- dbコンテナのMySQLに接続する
make sql
- dbコンテナのPostgreSQLに接続する
make psql
- deploy
appコンテナ内で
vendor/bin/dep deploy LaravelWeb1
├── app
├── web
└── db