承接 grobles16/laravel-docker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

grobles16/laravel-docker

Composer 安装命令:

composer require grobles16/laravel-docker

包简介

A laravel and docker extension for easy installation

README 文档

README

Install

After creating your laravel project you need to do some configuration first and have docker-compose installed

  1. Install package
composer require grobles16/laravel-docker
  1. To detect the routes file it is necessary to add the following code in config / app.php
'providers' => [
   Grobles16\LaravelDocker\LaravelDockerProvider::class,
],
  1. Publish files in our root folder
php artisan vendor:publish --provider="Grobles16\LaravelDocker\LaravelDockerProvider" --tag=laravel-docker --force

Docker settings

  1. Edit the .env file assign the name of the DB, user, password
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel
  1. Once the changes have been made in the .env file, execute the following command, this will allow us to create our containers:
docker-compose build app
  1. Turn on the containers and the network:
docker-compose up -d
  1. To display information about the status of active services, run:
docker-compose ps
  1. After executing step 3 our containers are already up, but we still need to run a couple of commands to finish configuring our application. You can use the docker-compose exec command to run commands on service containers, such as ls -l to display detailed information about the files in our application directory:
docker-compose exec app ls -l
  1. If necessary, run the following command to assign permissions to our project
docker-compose exec app chown -R www-data: /var/www
  1. Now we run "composer install" to install the app dependencies:
docker-compose exec app rm -rf vendor composer.lock
docker-compose exec app composer install
  1. Generate a unique app key
docker-compose exec app php artisan key:generate
  1. Go to the browser and put the following
localhost:8000

Optional information

  • If you want to pause your Docker Compose environment while maintaining the state of all your services, run:
docker-compose pause
  • Resume services
docker-compose unpause
  • To shut down the Docker environment
docker-compose down

grobles16/laravel-docker 适用场景与选型建议

grobles16/laravel-docker 是一款 基于 Dockerfile 开发的 Composer 扩展包,目前已累计 43 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 08 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 grobles16/laravel-docker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 grobles16/laravel-docker 我们能提供哪些服务?
定制开发 / 二次开发

基于 grobles16/laravel-docker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 43
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Dockerfile

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-15