3onyc / laravel-shipper

[ABANDONED] - Integrate Docker into your Laravel development workflow, alternatively check out LaraDock: https://github.com/LaraDock/laradock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Shipper

Integrating Laravel, Docker and Docker-Compose

Requirements

Instructions

  1. Add to composer.json

    composer require 'x3tech/laravel-shipper' '>=0.5'
  2. Add the provider to config/app.php

    'providers' => array(
        ...
        'x3tech\LaravelShipper\Provider\ShipperProvider'
    );
  3. If using MySQL, set host to db in database.php

  4. If using beanstalkd, set host to queue in queue.php

  5. Generate the docker-compose.yml config file

    ./artisan shipper:create:all

  6. Build and start the containers

    docker-compose build && docker-compose up

  7. Wait until the containers are started, and visit http://localhost:8080

FAQ

How do I run a command on my project (Such as artisan)

docker-compose run --rm app <command>

Examples

Artisan:

docker-compose run --rm app ./artisan

PHPUnit:

docker-compose run --rm app vendor/bin/phpunit

About

[ABANDONED] - Integrate Docker into your Laravel development workflow, alternatively check out LaraDock: https://github.com/LaraDock/laradock


Languages

Language:PHP 80.9%Language:Shell 17.3%Language:Smarty 1.8%