steveazz/laravel-docker
最新稳定版本:0.0.1
Composer 安装命令:
composer require steveazz/laravel-docker
包简介
Docker Containers for simple Laravel development.
README 文档
README
Docker Containers for simple Laravel development.
Prerequisites
This package only works for Linux users right now which can run docker natively.
Some software you need installed for this to work.
- Docker engine, installation documentation can be found here
- Docker compose is needed to connect all of the containers together, documentation on installation can be found here
- Having a fresh install of Laravel 5.1
Installation
In the root of your Laravel installation
$ composer require steveazz/laravel-docker
$ ./vendor/bin/laravel-docker make
$ sudo docker-compose up
If you check your directory where laravel is installed you will see a new file called.
|-- docker-config
|-- vhost.conf # Config file for nginx
|-- php-fpm.conf # Config file for php-fpm
|-- docker-compose.yml # yml file for docker-compose
Next up open your favorite browser and go on 127.0.0.1:8080
You should see the default installation Laravel welcome page.
Troubleshooting
-
If you get a '500' or '502 bad gateway' response in your browser, run the following commands.
$ sudo chown -R www-data storage $ sudo chmod -R 0770 storage
-
If you get 'failed to open stream: Permission denied' from laravel in your browser run the following command
$ php artisan cache:clear $ composer dump-autoload
More Information
You can find more information on how to use the docker containers in the wiki here
If you encounter any problem please do not hesitate to open up an issue I'll do my best to help.
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-25