sarvar-lapasov/laravel-docker-starter-kit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sarvar-lapasov/laravel-docker-starter-kit

Composer 安装命令:

composer create-project sarvar-lapasov/laravel-docker-starter-kit

包简介

The skeleton application for the Laravel framework.

README 文档

README

Laravel Logo

Laravel Docker Starter Kit

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Kit has 3 docker containers: php, nginx and mysql

Installation

Download the project
composer create-project sarvar-lapasov/laravel-docker-starter-kit --ignore-platform-reqs --no-scripts --stability=dev

Go to the project directory
cd laravel-docker-starter-kit

Copy .env from .env.example
cp .env.example .env

Run docker containers
docker compose up -d

Install composer scripts:
docker compose exec php composer install

Generate app key:
docker compose exec php php artisan key:generate

Running migrations:
docker compose exec php php artisan migrate

Done! You can open http://localhost:8000 via browser. By the way, you can change this port by changing DOCKER_NGINX_PORT variable in .env file.

If you receive an error message (Permission denied)
docker compose exec php bash
chown -R www-data:www-data storage/ bootstrap/cache/

Docker

For enter to php container run docker compose exec php bash

For enter to mysql container run docker compose exec mysql bash

For enter to nginx container run docker compose exec nginx bash

You can change containers prefix by changing DOCKER_PROJECT_NAME variable in .env file.

Also, you can change public ports of nginx and mysql by changing DOCKER_NGINX_PORT and DOCKER_DATABASE_PORT

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

License

The Laravel framework is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-19