定制 braceyourself/compose 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

braceyourself/compose

最新稳定版本:0.7.1

Composer 安装命令:

composer require braceyourself/compose

包简介

Initialize your application using docker and docker compose

README 文档

README

compose-for-laravel

This package is in development and not yet ready for production use.

Introduction

Compose for Laravel is a package that simplifies running and deploying Laravel applications using Docker Compose. It supports macOS, Linux, and Windows (WSL2). This package leverages Docker Compose for container orchestration and Traefik for routing HTTP requests.

Installation

To install Compose for Laravel, include it in your Laravel application's composer.json file:

composer require --dev braceyourself/compose

Upon installation, the compose script will be available in vendor/bin. Run the install command to set up node_modules and composer dependencies.

./vendor/bin/compose install

Usage

Available Commands

compose COMMAND [options] [arguments]
  • compose install: Uses docker containers to install composer and npm dependencies
  • compose build: Build the Docker containers
  • compose start: Start the application (docker-compose up -d)
  • compose deploy: Deploy the application to a remote server

All other commands are passed to docker compose or artisan

You can always use docker compose directly after running compose the first time.

After running compose for the first time, the docker-compose file will be published to your project root.

Environment Variables

Ensure you have a .env file in your project root. The script will source this file to set up the necessary environment variables.

When running the deploy command, the remote .env file will be created based on your .env.example file

Troubleshooting

If you encounter issues, ensure your system meets the requirements and that Docker and Docker Compose are properly installed and configured.

Please report any issues.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固