• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

jguyomard/docker-laravel: Docker Images for Laravel development

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jguyomard/docker-laravel

开源软件地址(OpenSource Url):

https://github.com/jguyomard/docker-laravel

开源编程语言(OpenSource Language):

Dockerfile 100.0%

开源软件介绍(OpenSource Introduction):

Docker Images for Laravel development

Docker Build Status Docker Build Status Docker Build Status

This repository provides you a development environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.

Installation

  1. Install docker and docker-compose ;

  2. Copy docker-compose.yml file to your project root path, and edit it according to your needs ;

  3. From your project directory, start up your application by running:

docker-compose up
  1. If you want, you can run composer or artisan through docker. For instance:
docker-compose exec php composer install
docker-compose exec php php artisan migrate
docker-compose exec php $yourCommandHere

Docker Images

These docker images are configured in docker-compose.yml file. You can comment or uncomment some services according to your project.

  • jguyomard/laravel-php:7.3 (this docker image extends php:7.3-fpm-alpine to add some PHP extensions) ;
  • jguyomard/laravel-nginx:1.13 (this docker image extends nginx:1.13-alpine to add Laravel vhost) ;
  • mysql:5.7 ;
  • postgres:9.6-alpine ;
  • redis:4.0-alpine ;
  • elasticsearch:5.5-alpine.

Other tools

This repository also comes with a caspistrano docker image: jguyomard/laravel-capistrano:3.9.

For ease of use, you can create a bash alias:

alias cap='docker run --rm --user cap -v "$PWD":/src -v "$(dirname $SSH_AUTH_SOCK)":"$(dirname $SSH_AUTH_SOCK)" -e SSH_AUTH_SOCK="${SSH_AUTH_SOCK}" jguyomard/laravel-capistrano:3.9 cap'

Contributing

Contributions are welcome! Leave an issue on Github, or create a Pull Request.

Licence

This work is under MIT licence.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap